Querystring problem (&)

T

Travis Pupkin

How do you handle an ampersand (&) if it appears as part of the string
in a querystring? Is there a way to tell the server it is not the
beginning of a new variable being passed, but rather just a part of the
string value?

Thanks
 
B

Bob Barrows

Travis said:
How do you handle an ampersand (&) if it appears as part of the string
in a querystring? Is there a way to tell the server it is not the
beginning of a new variable being passed, but rather just a part of
the string value?

Thanks

Use Server.URLEncode() when building the querystring. It will replace
ampersands with %26

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

Similar Threads

Getchar() problem 8
QueryString to Textbox 0
Timing problem 4
Url and querystring reading 5
Problem 0
"&" In QueryString 3
Session Querystring 0
Querystring question 2

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top