Thursday, 5 March 2015

Response.Redirect into new tab

HTML:
 ID="Button1" runat="server" Text="Button"
    onclick="Button1_Click" OnClientClick="document.forms[0].target = '_blank';" />
C#:
        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/YourPage.aspx");
        }
response.redirect to new tab

No comments:

Post a Comment