Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Server.UrlEncode
Message
 
 
To
14/01/2008 13:54:02
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01281652
Message ID:
01281668
Views:
6
>>In JavaScript the ' should be replaced with \', however simply replacing newtitle doesn't work.
>>
>>Do you have ideas how can I solve this problem?
>>
>>Thanks a lot in advance.
>
>If special characters are needed as part of the value of the parm, you should URLEncode it and then URLDecode it when you need to extract the value again.

What is the order of changes in this
"&title=" + Server.UrlEncode(newtitle).Replace("'", "\'") + "';";
Does it first do UrlEncode and then tries to replace ' with \' or vice versa?

I think for JavaScript ' should be replaced with \' but the above code doesn't do this for me. How should I fix it?

Thanks a lot again for your help.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform