ASP.NET open a new window with asynchronous post back
Posted on Monday, September 30, 2013
|
No Comments
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);
}