vielkacarolina1239
asked on
how to decode a query string in ASP.NET 2.0
hi,
I have the followin code in a .ascx.cs file:
string myQueryString = Request.QueryString.ToStri ng();
Please, can some one show me how to decode the querystring before I assign it to myQueryString variable?
Thanks
I have the followin code in a .ascx.cs file:
string myQueryString = Request.QueryString.ToStri
Please, can some one show me how to decode the querystring before I assign it to myQueryString variable?
Thanks
ASKER
I am assigning the query string to a variable. The variable contains + for the space and ....
I will like to decode the encoded characters in the query string when I assign it to the variable, myQueryString. I am parsing myQueryString variable my self. I am doing this becuase Request.QueryString["keyNa me"] cannot have duplicate entries and my query string does have duplicated entries, keys that are repeated.
Please, show me how to decode the query string and assign the decoded value to myQueryString.
I will like to decode the encoded characters in the query string when I assign it to the variable, myQueryString. I am parsing myQueryString variable my self. I am doing this becuase Request.QueryString["keyNa
Please, show me how to decode the query string and assign the decoded value to myQueryString.
ASKER
When one uses Request.QueryString.AllKey s[x], this piece of code automatically decodes the current key. But the object Request.QueryString.ToStri ng(), has the encoded string.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
string fooParm = Request.QueryString["foo"]
or
string firstParm = Request.QueryString[1]
David