Thursday, April 3, 2014

Open Page in new tab on button click ASP.NET

<asp:Button ID="btn" runat="Server" Text="SUBMIT" 
     OnClick="btnNewEntry_Click" OnClientClick="aspnetForm.target ='_blank';"/>

protected void btnNewEntry_Click(object sender, EventArgs e)
{
    Response.Redirect("Questionare.aspx");
}

No comments:

Post a Comment