Postback to Parent Window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chris.royle@ozemail.com.au

    #1

    Postback to Parent Window

    I have an ASP.NET application that has a gridview control on the main
    window. When a user clicks on a button on the main window, a new
    window is opened which allows them to search for a particular item
    from a list. Once they have completed the search on this window they
    click on the submit button.

    I would like the application to close the search window, and change
    the contents of the main window based upon this submission.

    In other words, I want to pass control back to the previous or parent
    window.

    What is the best way of handling this?

  • Ben Rush

    #2
    Re: Postback to Parent Window

    Please see here:
    http://www.ben-rush.net/blog/PermaLi...e8aa963&dotnet.

    If this does not give you enough information to get by, then let me know and
    I can help further. This all really depends on what you're trying to
    accomplish, however (how complicated the data is to pass back). Keep in mind
    that you can easily communicate with the parent window through script.

    --
    ~~~~~~~~~~~
    Ben Rush



    <chris.royle@oz email.com.auwro te in message
    news:1175741825 .640765.23840@n 76g2000hsh.goog legroups.com...
    >I have an ASP.NET application that has a gridview control on the main
    window. When a user clicks on a button on the main window, a new
    window is opened which allows them to search for a particular item
    from a list. Once they have completed the search on this window they
    click on the submit button.
    >
    I would like the application to close the search window, and change
    the contents of the main window based upon this submission.
    >
    In other words, I want to pass control back to the previous or parent
    window.
    >
    What is the best way of handling this?
    >

    Comment

    • chris.royle@ozemail.com.au

      #3
      Re: Postback to Parent Window

      Thanks Ben, works a treat. I will now implement this solution into my
      application - thanks for the tip!

      Chris

      On Apr 5, 4:36 pm, "Ben Rush" <kwen...@yahoo. comwrote:
      Please see here:http://www.ben-rush.net/blog/PermaLi...e1-eabe-4048-b....
      >
      If this does not give you enough information to get by, then let me know and
      I can help further. This all really depends on what you're trying to
      accomplish, however (how complicated the data is to pass back). Keep in mind
      that you can easily communicate with the parent window through script.
      >
      --
      ~~~~~~~~~~~
      Ben Rushhttp://www.ben-rush.net/blog
      >
      <chris.ro...@oz email.com.auwro te in message
      >
      news:1175741825 .640765.23840@n 76g2000hsh.goog legroups.com...
      >
      >
      >
      I have an ASP.NET application that has a gridview control on the main
      window. When a user clicks on a button on the main window, a new
      window is opened which allows them to search for a particular item
      from a list. Once they have completed the search on this window they
      click on the submit button.
      >
      I would like the application to close the search window, and change
      the contents of the main window based upon this submission.
      >
      In other words, I want to pass control back to the previous or parent
      window.
      >
      What is the best way of handling this?- Hide quoted text -
      >
      - Show quoted text -

      Comment

      Working...