473,503 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing a QueryString

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)
Feb 11 '06 #1
2 1650
try

Server.URLEncode(url)

"Scott" <sb*****@mileslumber.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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)

Feb 12 '06 #2
thx.

"Slim" <me@here.com> wrote in message
news:eH**************@TK2MSFTNGP09.phx.gbl...
try

Server.URLEncode(url)

"Scott" <sb*****@mileslumber.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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)


Feb 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4965
by: Fredrik/Sweden | last post by:
Hi folks ! got this problem... i have a table 'Accounts' in my database, which contains a bunch of users. From the main menu i choose "edit user" and all users in the db are presented in a table....
3
3439
by: Kim Lots | last post by:
Hi all I'm trying to pass two variables, but what is wrong with my code? -------- <form name="uno" action="validate.asp?Num=<%=Request.Querystring("Num") %>" method="post"> <textarea...
1
3595
by: Consuelo Guenther | last post by:
Hello, I am having problems with passing variables between pages. I have the following: First asp page has the function: -----------------------------------------------------------------------...
2
6815
by: Marcin | last post by:
i want to pass XML data in querystring from one to another asp page. it is about 10000 characters long, i cannot use FORM because it is already nested in one. What i do is i have IFRAME and im...
7
43233
by: Anne | last post by:
hie there, i want to be able to pass multiple parameters to another page. currently, i am able to do so, but somehow i feel it is not the correct way to do it. below is part of what i have so far....
3
1558
by: Lee | last post by:
Hi All How can I pass options from one webpage into another webpage. When the user clicks on the hyperlink I want them to be go to the next page but I need to pass in a number that the next...
4
7150
by: David Freeman | last post by:
Hi There! I'm just wondering if there's a way to pass parameters (as if you were passing parameters to a ASCX web control) when calling an ASPX page? e.g. MyDetailsPage.UserName = "david" ...
0
1027
by: Laura K | last post by:
I know this is basic but I just can not get my head around it. I would like to take a querystring and from that querystring redirect the user to a specific page. I set up a simple test and I am...
3
1533
by: Tor Inge Rislaa | last post by:
Passing and using parameters How to get hold of the parameter value provided by the URL? When I open a web form with a DataSource I often include a parameter in the URL as below: ...
1
5975
by: beebee | last post by:
Hi all. I am having a bit of difficulty: Here is what is happening: I have an application that spits out a thankyou.aspx page and i would like to pass it the querystring values it had collected...
0
7087
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.