Server.URLEncode

Discussion in 'ASP General' started by C, May 9, 2005.

  1. C

    C Guest

    Hi,

    If I redirect a user to a page and encode the url, do I need to decode it on
    the page they are redirected to.

    For Eample..

    Response.Redirect (Server.URLEncode(http://mysite/test.asp?id=1))

    In this case do I need to decode the URL before I can do a
    Request.QueryString("id")?

    Thanks,
    C/
     
    C, May 9, 2005
    #1
    1. Advertising

  2. C wrote:
    > Hi,
    >
    > If I redirect a user to a page and encode the url, do I need to
    > decode it on the page they are redirected to.
    >
    > For Eample..
    >
    > Response.Redirect (Server.URLEncode(http://mysite/test.asp?id=1))
    >
    > In this case do I need to decode the URL before I can do a
    > Request.QueryString("id")?
    >
    > Thanks,
    > C/


    No. ASP handles that for you.

    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.
     
    Bob Barrows [MVP], May 9, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Klemt
    Replies:
    4
    Views:
    10,310
    mikeb
    Jan 22, 2004
  2. msn

    Server.UrlEncode error???

    msn, Feb 20, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    475
  3. Dario Sala
    Replies:
    1
    Views:
    3,810
    Karl Seguin
    Nov 15, 2004
  4. Nathan Sokalski

    Strange results from Server.UrlEncode

    Nathan Sokalski, Jun 8, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    371
    Nathan Sokalski
    Jun 8, 2005
  5. MyndPhlyp
    Replies:
    3
    Views:
    494
    MyndPhlyp
    Oct 3, 2005
Loading...

Share This Page