Monday, May 24, 2010

Child Window Closed and Parent Refresh

Just Write this on button submit event

ScriptManager.RegisterClientScriptBlock(this, GetType(), "Cl", "alert('Keyword Added Successfully');opener.location.href = opener.location.href;this.close();", true);

ALternate

ScriptManager.RegisterClientScriptBlock(this, GetType(), "Cl", "parent.hs.close();parent.location.href = parent.location.href;", true);

No comments:

Post a Comment