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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -