473,765 Members | 2,021 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.as p?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.HtmlEnco de comand in "FAILED ATTEMPT"
below, but I'm still losing any querystring pairs after the 1st qs pair.


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

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

FAILED ATTEMPT: myPopUp.asp?sPa ge=" & Server.HtmlEnco de(sTargetPage)
Feb 11 '06 #1
2 1666
try

Server.URLEncod e(url)

"Scott" <sb*****@milesl umber.com> wrote in message
news:%2******** ********@tk2msf tngp13.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.as p?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.HtmlEnco de comand in "FAILED
ATTEMPT" below, but I'm still losing any querystring pairs after the 1st
qs pair.


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

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

FAILED ATTEMPT: myPopUp.asp?sPa ge=" & Server.HtmlEnco de(sTargetPage)

Feb 12 '06 #2
thx.

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

Server.URLEncod e(url)

"Scott" <sb*****@milesl umber.com> wrote in message
news:%2******** ********@tk2msf tngp13.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.as p?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.HtmlEnco de comand in "FAILED
ATTEMPT" below, but I'm still losing any querystring pairs after the 1st
qs pair.


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

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

FAILED ATTEMPT: myPopUp.asp?sPa ge=" & Server.HtmlEnco de(sTargetPage)


Feb 12 '06 #3

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

Similar topics

3
4992
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. The first column 'Pnr' is a unique ID for each user that i made appear as a link. clicking on one userID should present a form where the picked users userdata is already filled in so i can easily edit it and then move on to submit the form to...
3
3461
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 name="komm" cols="90" rows="4" id="komm"></textarea>
1
3617
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: ----------------------------------------------------------------------- <script language="JavaScript"> function addProcess(addPName,addSProcess,addPIndex) { var addProcessWindow = window.open('second.asp','mywindow','width=400,height=200');
2
6831
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 passing some xml data in QUERYSTRING. It doesnt work somehow, im using javascript escape method to substitute escape characters, but most of characters are being truncated (about 300-500 left). Are there limits in querystring length? what else...
7
43277
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. 'first page Private Sub btnOK_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click Response.Redirect("InputValues.aspx?Requestor=" &
3
1572
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 page needs to reference. Thanks Lee
4
7158
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" OR... the only way to do it is to use the QueryString or Session object?
0
1037
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 doing something wrong. Kinda a newbie here so here it goes. I have tested the querystring by passing it to a label to make sure it is correct and the querystring that I have been testing this with is 7jackets. The redirect takes me to the...
3
1544
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: myNewPage.aspx?myParam = 10
1
5982
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 before loading the thankyou page. This is completed. NOw on the thankyou.aspx page i am getting the following error: Compiler Error Message: CS0120: An object reference is required for the nonstatic field, method, or property...
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8833
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7379
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3926
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 we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.