Server.URLEncode

C

C

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/
 
B

Bob Barrows [MVP]

C said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top