Open new browser window using asp.net

If you want to open new browser window then you can use this code.

<
asp:Button ID="ButtonView" OnClick="ButtonView_Click" runat="server" Text="View" Width="80px" />

 

protected void ButtonView_Click(object sender, EventArgs e)

{

    string Fullurl = "newpage.aspx/";  

    OpenNewBrowserWindow(Fullurl, this);

}


//This is used to open new browser window

public static void OpenNewBrowserWindow(string Url, Control control)

{

    ScriptManager.RegisterStartupScript(control, control.GetType(), "Open", "window.open('" + Url + "');", true);

}