Tuesday, 11 June 2013

open a new browser window using Java Script

Response.Redirect to open a new browser window

 

Response.Redirect to open a new browser window

response redirect open in new window using script manager add RegisterStartupScript
on the page.


protected void Button1_Click(object sender, EventArgs e)
{
   ScriptManager.RegisterStartupScript(Page, typeof(Page), "OpenWindow", "window.open('YourPage.aspx?Param=" + ParamX.ToString() + "');",true);
}

No comments :