Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# replace command
Message
 
 
To
16/01/2008 11:19:29
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01282218
Message ID:
01282294
Views:
7
>Maybe I did not understand, is this what you want?
>
>string x = "I'm a girl";
>x = Server.UrlEncode(x).Replace("'", "\\'"));
>
>returns: "I\'m+a+girl"
>
>Craig is correct, you need to escape the backslash in C#.

Thanks everyone. This particular problem that was bugging me for the few last days seems to be solved.

Now I have to solve the real problem with the "fck editor".
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