J
John Grandy
Does Server.URLDecode() need to be applied to Request.QueryString(<key
name>) ?
name>) ?
Does Server.URLDecode() need to be applied to Request.QueryString(<key
name>) ?
Sean M said:Yes, as I discovered this is also important when using Base64-encoded
strings in the QueryString. Here's what I use to combat frustration:
string sOKForBase64Decrypt =
Server.UrlDecode(Request.QueryString["argument"].ToString()).Replace("
","+")
-- Sean M
John Grandy said:Does Server.URLDecode() need to be applied to Request.QueryString(<key
name>) ?
Lucas said:Yes - if the string is encoded. Request.Querystring returns the raw
(undecoded) text.
Um... no. Items retrieved from the QueryString collection have already
been decoded (anything else would be disastrous).
Hmmm ...
My tests don't show any need to apply Server.URLDecode() to
Request.QueryString()
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.