Re: Use URLEncode

From: David Jessee (djessee_at_houston.rr.com)
Date: 05/04/04


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..



Relevant Pages

  • Use URLEncode
    ... If i used URLEncode to encode the URL, how can I decode the URL with proper parameter values in ASP.NET?? ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Globalization: This is driving me crazy. Can u help me out?
    ... Try using the HTMLEncode or URLEncode to put your data thru one of these functions. ... Make sure to encode and decode. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Use URLEncode
    ... If i used URLEncode to encode the URL, how can I decode the URL with proper parameter values in ASP.NET?? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Need a bit of information about Compression
    ... either encode a full length, or a length mod some constant. ... Yes, full Length coding, arithmetic coding which is certainly better ... if you are decoding, say, 1024 symbols, then you stop as soon as you decode ... less common is to set up some special condition, where the eof is ...
    (comp.compression)
  • Re: Sending floats over a client-server in Smalltalk
    ... The trick is knowing what to decode them ... Then encode the number in the remaining bytes. ... ByteString>>floatAt: byteIndex ... I could then take a string ...
    (comp.lang.smalltalk)