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)
If you’re using Visual Studio to build your .NET MAUI app on a Mac, locating the IPA (iOS App Package) file can be a bit tricky
If you’re using Visual Studio to build your .NET MAUI app on a Mac , locating the IPA (iOS App Package) file can be a bit tr...
-
Sample Code: if (Email.Default.IsComposeSupported) { string subject = "Hello!"; string body = "Excellent!"; ...
-
If you’re using Visual Studio to build your .NET MAUI app on a Mac , locating the IPA (iOS App Package) file can be a bit tr...
-
Charts for Windows and web including .Net MAUI LiveCharts - LiveCharts2 (lvcharts.com)
No comments:
Post a Comment