Get data from the popup window and refresh the already opened window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waqasahmd
    New Member
    • Nov 2009
    • 13

    Get data from the popup window and refresh the already opened window

    Hi all,

    I have a Homepage.aspx on which there are search button when i clicked that button a new popup window is opened and i do some stuff there.

    Now i want that when i close that window i have a values in session["rm_id"],
    the previous Homepage.aspx(p arent page) should be refreshed on whose Page_load i will get session["rm_id"].

    i tried Response.redire ct("Homepage.as px") but it opened a new page.

    Regards,
    Waqas Ahmad
  • semomaniz
    Recognized Expert New Member
    • Oct 2007
    • 210

    #2
    This might help you

    Code:
    
    window.close();
    if (window.opener && !window.opener.closed) {
      window.opener.location.reload();
    }

    Use this to close the child window and then refresh the parent window

    Comment

    Working...