query string

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jorge Ribeiro (anonymous_at_discussions.microsoft.com)
Date: 06/01/04


Date: Tue, 1 Jun 2004 07:16:03 -0700

hello

I've an ASP.Net page that, by the action of one submit button, redirects from one Web form to another passing
in the query string one value that will be processed in the later web form.
So far so good.

My question derives from the fact that, because I'm using portuguese keyboard layout and language, some special characters cannot be passed on the query string unless I escape them...

To eliminate this, on the onclick event of the button I've an instruction that redirects to another page passing the value
escaped using the function escape of javascript.
But when in ASP.Net code behind I try to access that key whose value whas escaped those special characters disappear.

Example: imagine that my button has something like this... onClick="window.location='home.aspx?key=diário'"
when in code behind of home.aspx i try to access my key using request.querystring.get("key") the value returned omits the third
character wich is a portuguese special character...

can you help me here?!?!
best regards



Relevant Pages

  • Re: query string
    ... some special characters cannot be passed on ... the query string unless I escape them... ... that redirects to another page passing the value ... > escaped using the function escape of javascript. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Special Characters in URL, how to handle?
    ... If you are passing it as a query string, you must escape it. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Serial Port Errors
    ... the special characters can be guaranteed to always represent the ... - pick 0x7d as the escape character ... in the data there are no input bytes producing either the flag or the ... PPP even uses the HDLC headers, ...
    (comp.os.linux.embedded)
  • Re: transposing fields with sed or awk
    ... The input blog file contains links of the form: ... The output format of the link is: ... I always find I can't see the wood for the trees once starting to escape ... special characters. ...
    (comp.unix.shell)
  • Re: Getting Umlauts from QueryString
    ... the query string seems to be stripping out the special ... > that special characters are not stripped out in the query string? ... request instead, it should be much more robust. ...
    (microsoft.public.dotnet.languages.csharp)