Parent Child Windows

  • Thread starter Thread starter chuckdfoster
  • Start date Start date
C

chuckdfoster

I have 2 windows (MainPage.aspx and PopUp.aspx) and both have a textbox. I
need the user to hit a button on the MainPage and the PopUp will show. Then
I need the user to enter information in a textbox on the PopUp. Then when
they hit the Submit button, the MainPage has a textbox that should be
updated with the information from the textbox on PopUp. I am having a
problem getting the MainPage to be updated from the PopUp window.

Any advice or help is greatly appreciated.
 
In JavaScript, the window.opener property is the parent window. You can
access and manipulate the parent window using JavaScript in this way.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
If your popup is a modal dialog window and you don't want to let a child
operate on the parent (which is not always possible since you can use the
same popup from different parents), you can return the value back in
returnValue property.

Eliyahu
 

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

Back
Top