ASP.NET open a new window with asynchronous post back
Monday, September 30, 2013 Category : ASP.NET 0
asp.net open a new window using java
[Serializable]
public class Result : System.Web.UI.Page
{
public void showReportModified(string pageUrl, string param, Type cType, Page oPage,Control ctrl)
{
ScriptManager.RegisterStartupScript(ctrl, typeof(string), "redirect", "window.open('" + url + "');", true);
}
}
in your web page c# code where you open to a new window
protected void btnSave_Click(object sender, EventArgs e)
{
new Result().showReportModified("url", "parameter" , this.GetType(), this.Page, UpdatePanel1);
}