i have a label whose text value does change after closing the pop up window. the label is in the parent window implementing a master page, i would like to know how to fetch the value of the label once the pop up closes, because writing Label1.Text does not give me the new value.. your help will be appreciated and its a lil urgent .. thank u.
Popup windows and parent
Collapse
X
-
Tags: None
-
You need to implement a bit of JavaScript that will go to the server and fetch the new information once the child window closes.
In the parent window write a method that calls the__doPostback()
method for some hidden LinkButton on the page.
Then, during the JavaScriptonBeforeUnload
event in the child window call the method you just implemented (to submit the page to the server) using thewindow.opener
property.
Now in your server-side code, implement a method that handles the LinkButton's click event and set theLabel1.Text
property then.
-Frinny
Comment