Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
04-03-2003, 11:19 PM #1
- Join Date
- Mar 2003
- Thanked 0 Times in 0 Posts
Creating Autopostback event when closing a window?
I am currently working on two webforms(WebForm1 & WebForm2) in ASP.Net - C# code behind. WebForm2 is generated from WebForm1 via a window.open() command. In WebForm2 I am generating a DataGrid of names which the user will choose from. Once the user chooses a name from the DataGrid, I would like to return their choice to a textbox in WebForm1 and close WebForm2. For simplicity sake, I'm using a Session variable right now to pass the name between the two forms.
My problem is getting WebForm1 to refresh/reload and show the name in the textbox. I created a dummy button in WebForm1 and verified that the name was being sent to the textbox and will be displayed when an autopostback event occurs. So how can I generate an autopostback event in WebForm1 when the user clicks the close window button in WebForm2? Or is this restricted for security reasons?
This thread is also posted under the ASP section.
Thanks in advance,jwite