如何在新标签页中打开此链接

如何在新标签页中打开此链接

问题描述:

Response.Redirect("005-PrintDeliveryNoteForm.aspx?Name=" + this.txtId.Text + "&LastName=" + this.Label2.Text);





我的尝试:



i尝试在新选项卡中打开此表单



What I have tried:

i try to open this form in new tab

您无法从服务器代码打开新选项卡,转到您页面的链接需要上面有target = _blank



You can't open new tabs from server code, the link that goes to your page needs to have target=_blank on it

<a href="yourpage.aspx" target="_blank">Click</a>





Googleresponse.redirect new tab,您可以根据页面的访问方式找到各种解决方案。



Google "response.redirect new tab" and you'll find various solutions depending on how your page is accessed.