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);
} 

 

  Modified On Nov-29-2017 10:26:06 PM
  1. Anil Babu, you should ask or comment according to the content of the article where you are commenting.

    For asking question you can use our forum section and do google it before asking questions. This is not a class room where you can ask any question infact we are here to solve your problem if you are stuck some where in your work.

    Please don't ask such type of questions again otherwise we have to block you from posting any comment.

    Thanks

Leave Comment