我有 2 个单选按钮,如下所示:
<asp:RadioButton runat="server" GroupName="ebrochType" Text="Select Type 1" TextAlign="Right" ID="rbtSelect1" OnCheckedChanged="sel1" AutoPostBack="true" />
<asp:RadioButton runat="server" GroupName="ebrochType" Text="Select Type 2" TextAlign="Right" ID="rbtSelect2" OnCheckedChanged="sel2" AutoPostBack="true" />
When one of these is selected, I need to open a page in a new window with no menubar etc...
这可能在后面的代码中吗?
我试过了,但没有用(它只是刷新了页面/更新面板):
Sub sel1(sender As Object, e As EventArgs)
Page.ClientScript.RegisterStartupScript(Me.GetType(), "select1", "window.open('http://www.google.co.uk','','')", True)
End Sub