Re: Use URLEncode
From: David Jessee (djessee_at_houston.rr.com)
Date: 05/04/04
- Next message: Fernando Poinho Malard: "Connection string and web.config"
- Previous message: vandalo: "Render HTML document in ASP.NET"
- In reply to: Grey: "Use URLEncode"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 4 May 2004 07:32:16 -0500
the good thing is\s you don't have to worry about it.
for instance,
dim invalid_param as string = "abc/\/\&#x y z"
Response.Redirect("page.aspx?param=" & Server.URLEncode(invalid_param))
then inside of page.aspx......
dim theVariable as String = Request.parameters("param")
theVariable is now equal to "abc/\/\&#x y z". Since it was URLEncoded it it placed corrently into the QueryString. Because the params collection (or QueryString Collection) makes the assumption that you want it to be decoded.
"Grey" <ericyum@i-cable.com> wrote in message news:%231VQf0aMEHA.2284@TK2MSFTNGP11.phx.gbl...
How can I use the URLEncode in ASP.NET?? If i used URLEncode to encode the URL, how can I decode the URL with proper parameter values in ASP.NET?? I can encode the URL, but i cannot decode it properly...
Million Thanks..
- Next message: Fernando Poinho Malard: "Connection string and web.config"
- Previous message: vandalo: "Render HTML document in ASP.NET"
- In reply to: Grey: "Use URLEncode"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|