The following C# code defines the JavaScript code for redirecting parent page to new location, and registers it to execute immediately upon the page being posted back the next time.
// Redirects the parent page to a loacation.
public void RedirectParentPage(string sUrl)
{
string str = string.Format("window.parent.location='{0}';", sUrl);
ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), str, true);
}
Subscribe to:
Post Comments (Atom)
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...
-
Troubleshooting steps: Explicitly set LineBreakMode to WordWrap in XAML or code Verify label's HorizontalOptions and VerticalOptio...
-
Blazor would be great if: You want real-time updates as users input their cards You need rich client-side interactivity without writing J...
-
Generating an API Key Before you can add an Apple Developer Account to Visual Studio, you'll need to generate an API Key. Generating a...
No comments:
Post a Comment