Monday, July 11, 2011

Redirects the parent page to a loacation

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


No comments:

Post a Comment

Your project is not referencing the "MonoAndroid,Version=v8.1" framework. Add a reference to "MonoAndroid,Version=v8.1" in the "frameworks" section of your project.json, and then re-run NuGet restore.

I had  the same problem. Reason: file obj/project.assets.json target "MonoAndroid,Version=v7.1" when my project target androi...