Wednesday, 8 August 2012

JS : Reload Parent Page After Child Popup Close.

I've Answered this Question many Times

This is your Simple Popup Page on any Button click event.


string popup = "";
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "PopupScript", popup, false);

And This is your Popup.aspx and Close Button Event
protected void CloseButton_Click(object sender, EventArgs e)
 {
        
   CloseButton.Attributes.Add("onclick", "return windowclose();");
   ClientScript.RegisterStartupScript(GetType(), "CloseScript", "window.opener.location.reload(); window.close();", true);
  }

Good Luck`

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More