What function to use to submit a param in URL that contains '&' w/o using %26?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bytelip
    New Member
    • Jul 2010
    • 2

    What function to use to submit a param in URL that contains '&' w/o using %26?

    When I do window.open(url ), I have to manually replace a value inside that url that contains '&' by '%26'. I am wondering whether there is a function on ASPNET side that I can manipulate that param value that contains '&' to containing '%26' without doing in javascript window.open(). URLEncode does not work nor URLPathEncode!
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Check out the HtmlEncode method. This method converts all HTML reserved characters into character entities for you.

    -Frinny

    Comment

    • bytelip
      New Member
      • Jul 2010
      • 2

      #3
      It is not a happy answer - I can't believe it but I think I have to accept it. Thanks.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        I'm sorry but after posting my reply to your question I realized that it probably isn't going to work for you (I deleted it, but then undeleted it so that others could see what I said). Feel free to check it out because it's a good topic to know... but I don't think it will work for converting "&" into the appropriate ascii equivalent.

        -Frinny

        Comment

        Working...