Translate

Home > September 2013

September 2013

ASP.NET open a new window with asynchronous post back

Monday, September 30, 2013 Category : 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);
}

Powered by Blogger.