Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-03-2003, 10:19 PM   PM User | #1
jwite2003
New Coder

 
Join Date: Mar 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
jwite2003 is an unknown quantity at this point
Creating Autopostback event when closing a window?

Hi,

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
jwite2003 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:14 AM.


Advertisement
Log in to turn off these ads.