Special Characters in URL, how to handle?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi All,
I have created an application which is working fine and is in about to
launch, now suddenly my mgmt says there are chances that Scrip ID( a
particular id and not prim key) may have special characters like '&,*,) or
/'

This data(field/key) I am passing this value as a querystring. e.g.

value to be passed : ABC
http://localhost/myProj/abc.aspx?ScripID=ABC
this works fine,

But when I have special characters like [ABC&D] then the value retrieved is
wrong it just retrieves ABC and not complete ID [ABC&D]
value to be passed : ABC&D
http://localhost/myProj/abc.aspx?ScripID=ABC&D

how do I overcome this, I know I can do it like we have %20 for space and
like wise for & there will be something, but this will be a major change to
my application, can I do this at one end some where in web.config or in aspx
page?

Regards,
Shailesh Gajare


.



Relevant Pages

  • Special Characters in Query String
    ... now suddenly my mgmt says there are chances that Scrip ID(a ... But when I have special characters like then the value retrieved is ... wrong it just retrieves ABC and not complete ID ...
    (microsoft.public.dotnet.framework.aspnet)
  • Special Characters in Query String
    ... now suddenly my mgmt says there are chances that Scrip ID(a ... But when I have special characters like then the value retrieved is ... wrong it just retrieves ABC and not complete ID ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: URL encoding in global.asax
    ... But when I have special characters like then the value retrieved is ... wrong it just retrieves ABC and not complete ID ... Regards, ... > Shailesh Gajare ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: escapes and JSON
    ... [snip of some sample code] ... special characters are causing all sorts of probs with JSON ... Chances are, with that key like that, you have a design issue. ... method there is still a chance collisions. ...
    (comp.lang.javascript)