asp.net - how to get link to open new tab in browser? -


i have save button saves information user enters form database. once done, want new tab automatically open.

so code checks if save successful want new tab open.

if (newquoteid != -1) {      response.redirect("printouts/dsvquotation.aspx?quoteid=" + newquoteid.tostring(), false); } 

code 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 link on same tab. how link open on new tab in browser? see lot of examples setting onclientclick this: onclientclick="aspnetform.target ='_blank';" calling method in onclientclick

try this:

 onclientclick="window.open('new.aspx')" 

but question duplicated, here full answer

how open page in new tab on button click in asp.net?


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -