我有一个图像按钮控件:
<asp:ImageButton ID="ImageButton1" runat="server" class="btn btn-primary" ImageAlign="Middle" ImageUrl="~/img/search-butt.png" />
此控件的后面代码是:
Response.Redirect("http://www.google.com/search?q='" + TextBox1.Text + "'&sitesearch=http://example.com")
好吧,我需要在新标签页中打开(谷歌页面),而不是当前标签。我怎么能这样做?