|
-
May 30th, 2007, 10:16 AM
#1
Thread Starter
Member
[20005] Communication between 2 webforms.
I have a webform that has a hyperlink button that calls a javascript function to open a small window with another webform loaded in it. When a button is clicked on that form I would like it to close the pop up and refresh a datagrid on the first webform. How can I have this kind of communication between webforms ? What is this process called and where can I read more about it?
Thanks a bunch.
P.S. Using IE6
-
May 30th, 2007, 11:38 AM
#2
Re: [20005] Communication between 2 webforms.
Since you seem eager to find out on your own, two things for you to do.
One, to communicate with the parent window, search for window.opener in javascript.
Second, to dynamically pass values back to the parent, you will need to generate the javascript from the codebehind. For that, use Page.RegisterStartupScript and Page.RegisterClientScriptBlock.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|