我正在尝试使用按钮打开的URL。但在这种情况下,我没有使用按钮单击事件,我正在使用命令名正确的代码后面的网址。我可以转到网址,但它发生在同一个标签,但我希望它打开一个新的标签。这里是我使用如何使用vb.net中的按钮在新选项卡中打开一个URL,该按钮不是通过单击事件使用命令名称
<asp:Button ID="btneditinformation" runat="server" CommandName="editinformation" CausesValidation="false" ToolTip="Edit information in QuickBase" Text="Edit Information" Height="30px" Width="100px"
OnClientClick="aspnetForm.target ='_blank';"></asp:Button>
按钮,这背后是我试图提前使用
ElseIf e.CommandName = "editinformation" Then
Response.Redirect(url)
End If
感谢代码
的网址是动态变化的。所以我不能使用javascript – LReddy