Monday, October 3, 2011

Refresh parent page

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);
}

No comments:

Post a Comment

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...