Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL Syntax error with reserved asp character (&)

Status
Not open for further replies.

MeDeeSa

Programmer
Nov 8, 2002
14
0
0
US
Has anyone had to send a string parameter containing the & with quotes around it?

ie.

promptex0="B&C-I"

I keep getting a syntax error because the activex viewer cuts the parm off at the B because URL sytax uses the &...

Thanks!

Dee
 
Try replacing the & with %26 (that's the ASCII code for it)
 
I tried the %26 but it still doesn't work. I actually do a URLEncode on it before I call the viewer...
 
I ended up ditching the URLEncode in favor of the REPLACE function and it does indeed work.

Thanks so much for your help!

Dee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top