The following C# code
defines the JavaScript code for refreshing parent page.
public void RefreshParentPage()
{
string strPageLocation = "window.parent.location.href = window.parent.location.href;";
//Registers the startup script with the Page object.
ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), strPageLocation, true);
}
public void RefreshParentPage()
{
string strPageLocation = "window.parent.location.href = window.parent.location.href;";
//Registers the startup script with the Page object.
ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), strPageLocation, true);
}
No comments:
Post a Comment