473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to pass a querystring to a popup window

I have a parent window and popup window. Would like to pass a value
stored in a Code behind variable(_strUserId) as a querystring.

Below is the code.
Dim Popupscript As String
Popupscript = "<script language='javascript'var strReturn;
strReturn=window.showModalDialog('RequestPopup.asp x?RequestID=' &
_strUserId,'status:no;dialogWidth:370px;dialogHeig ht:220px;dialogHide:true;help:no;scroll:no');
document.getElementById('txtPopupUserId').value=st rReturn;</script>"
RegisterStartupScript("frmRequest", Popupscript)

Can anyone pls correct me where am i going wrong !
Thanks in Advance

Nov 2 '06 #1
1 2995
Solved it.

ra*******@gmail.com wrote:
I have a parent window and popup window. Would like to pass a value
stored in a Code behind variable(_strUserId) as a querystring.

Below is the code.
Dim Popupscript As String
Popupscript = "<script language='javascript'var strReturn;
strReturn=window.showModalDialog('RequestPopup.asp x?RequestID=' &
_strUserId,'status:no;dialogWidth:370px;dialogHeig ht:220px;dialogHide:true;help:no;scroll:no');
document.getElementById('txtPopupUserId').value=st rReturn;</script>"
RegisterStartupScript("frmRequest", Popupscript)

Can anyone pls correct me where am i going wrong !
Thanks in Advance
Nov 3 '06 #2

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

Similar topics

3
by: Treetop | last post by:
I would like to pass text to a popup window to save creating a new html file for each help topic. I would like to have a value for the heading, a value for the text, code for printing the help...
1
by: lion | last post by:
my Problem: a query string passed into a html page doesn't display correctly on a mac I am just using html and javascript (no ASP, PHP or server side scripting) This is the query string:...
1
by: William Starr Moake | last post by:
The browser-based WYSIWYG editor I'm developing has a popup window with a form that generates table code from user input (width, border, cols, rows, bgcolor.) But the user has to copy-paste the...
1
by: TErnst | last post by:
Hello All.... What I am attempting to do is have a link/button on a page (testpopup.cfm) that opens a popup page (popupwindow.cfm). The popup page displays a resultset from a query and the...
1
by: Jon | last post by:
I need to open a new window from client-side JavaScript, and pass a querystring parameter value to the new window. The page that opens in the new window has code-behind logic that requires the...
1
by: kebabkongen | last post by:
Hi, I am working on an application where I make a popup window with a long list of users (with checkboxes) I am trying to figure out how to pass the list of selected users to the parent window....
6
by: Ellie | last post by:
In my program the user clicks on a link and using the window.open function, opens a new window. I pass a url to the new window like this: <a href="#"...
1
by: colleen1980 | last post by:
Hi: Can any one please tell me that how to i pass the two textbox values in the new page. If i use the form action in the popup window page then the new page is open in the same popup window as i...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.