I am building the url in my web application and I am trying to pass a name as a query string, Bob O’Neal, which to my surprise does not seemed to be escaped properly with UrlEncode and there seems to be nothing on the net which talks about how to handle this?
Is there an elegant solution to properly handle escaping single quotes in query strings?
If you are storing the URL in a javascript statement to be executed on the client, then you need to do: