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!
What function to use to submit a param in URL that contains '&' w/o using %26?
Collapse
X
-
Check out the HtmlEncode method. This method converts all HTML reserved characters into character entities for you.
-Frinny -
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.
-FrinnyComment
Comment