Results 1 to 2 of 2

Thread: [20005] Communication between 2 webforms.

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2005
    Posts
    38

    Lightbulb [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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width