473,385 Members | 1,409 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,385 software developers and data experts.

How to Pass values between from a popup page aspx & a normal page aspx

hi
for example, I have a page 'register.aspx' and open a second page
'popup.aspx', what I want to do is to pass the control and values obtained
in 'popup.aspx' to 'register.aspx', somebody help!!!
thanks
Nov 18 '05 #1
2 1595
Sounds like you'll be needing to use some client side javascript.
You can open a new window using javascript such as this:
a=window.open('MyPage.aspx','_new')
There are all kinds of options for setting window properties such as window
size and toolbar visibility.
Here's more info:
http://msdn.microsoft.com/workshop/a...ods/open_0.asp

From that new window you can reference the original parent window with
this javascript reference:

Here's an example:
window.opener.document.form1.mytextbox.value = 'whatever';

Here's more info:
http://www.mozilla.org/docs/dom/domr...dow_ref77.html

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Marco Antonio Montalvo Durán" <mm*******@ijb.gov.bo> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
hi
for example, I have a page 'register.aspx' and open a second page
'popup.aspx', what I want to do is to pass the control and values obtained
in 'popup.aspx' to 'register.aspx', somebody help!!!
thanks

Nov 18 '05 #2
I recently had to do the same thing. You definately need to use client side
script. In my case, I used the window.open method to display the dialog,
size it and configure it. Then in my dialog, when dismissed, I implemented a
method that used the RegisterClientScriptBlock to dismiss the dialog as well
as update the page that invoked the dialog in the first place. I wired up a
method to the ServerChange event of the first page to automatically post
back the page after the dialog was dismissed. It worked out great.

Here's the dec for the method that dismisses the dialog and comminucates
with the page via client side script.

Public Sub SaveAndCloseDialog(ByVal formName as string, ByVal
controlNameToSaveTo as String, ByVal dataToSave as string, ByVal submitForm
as Boolean)

"Marco Antonio Montalvo Durán" <mm*******@ijb.gov.bo> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
hi
for example, I have a page 'register.aspx' and open a second page
'popup.aspx', what I want to do is to pass the control and values obtained
in 'popup.aspx' to 'register.aspx', somebody help!!!
thanks

Nov 18 '05 #3

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

Similar topics

8
by: darrel | last post by:
I'm still trying to fully understand how best to pass variables between pages/usercontrols/each other. On a current site I've done, I've had one userControl do the logic and set the variable,...
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...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.