>C# sees the \ as an escape character. Try:
>Server.UrlEncode(strPageTitle).Replace("'", @"\'");
>
>or
>
>Server.UrlEncode(strPageTitle).Replace("'", "\\'");
>
>
Both cases produced \\ instead of a single \. But we're getting closer, thanks.
I'm thinking about using chr() instead. Would you please help with a syntax?
It should not be that hard a thing to replace a single quote with a \ and a single quote.
If it's not broken, fix it until it is.
My Blog