Passing a QueryString

S

Scott

I'm trying to create a link (SEE LINK BELOW) to a pop-up window
(myPopUp.asp). My problem is my sTargetPage variable is a url containing a
querystring variable. When myPopUp.asp opens and I get my sPage query string
value, it returns myTargetpage.asp?qs=1 and clips the 2nd querystring value
pair.

Can someone help me construct a link so myPopUp.asp preserves the entire
query string? I tried using the Server.HtmlEncode comand in "FAILED ATTEMPT"
below, but I'm still losing any querystring pairs after the 1st qs pair.




PAGE VARIABLE: sTargetPage="myTargetpage.asp?qs=1&qs=2"

LINK: http://www.cnn.com/myPopUp.asp?sPage=" & sTargetPage

FAILED ATTEMPT: myPopUp.asp?sPage=" & Server.HtmlEncode(sTargetPage)
 

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,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top