I have a save button that saves all the information the user enters from a form into the database. Once all that is done, I want a new tab to automatically open.
So the code checks if the save is successful then I want the new tab to open.
if (NewQuoteID != -1)
{
Response.Redirect("Printouts/DSVQuotation.aspx?QuoteID=" + NewQuoteID.ToString(), false);
}
Code for the save button:
<asp:LinkButton runat="server" ID="btnSave" CssClass="btnSaveLarge loading" OnClientClick="return CheckNoOfDetails()" ToolTip="Save Quote" OnClick="btnSave_Click" Text="Save" />
This code opens the link on the same tab. How do I get the link to open on a new tab in the browser? I see a lot of examples are setting the OnClientClick to something like this: OnClientClick="aspnetForm.target ='_blank';"
But I am already calling a method in the OnClientClick