我想创建一个带有选项按钮和文本框的弹出窗口。
检查我的代码..
<form id="frmInsuranceCarrier" runat="server">
<div>Enter a New Insurance Carrier Code</div>
<div>
<asp:RadioButton ID="optAutoAssign" runat="server" />
Auto Assign</div>
<div>
<asp:RadioButton ID="optManual" runat="server" />
Manual</div>
<div>
<asp:TextBox ID="txtManual" runat="server"></asp:TextBox>
</div>
<asp:Button ID="cmdOk" runat="server" Text="Ok" onclick="cmdOk_Click" />
<asp:Button ID="cmdCancel" runat="server" Text="Cancel"
onclick=
“cmdCancel_Click”/&gt;
答案 0 :(得分:0)
这里处理弹出窗口的代码不多:) 你想要一个ajax模态弹出窗口吗?在那种情况下退房: http://www.asp.net/ajax/ajaxcontroltoolkit/samples/modalpopup/modalpopup.aspx
答案 1 :(得分:0)
Jquery模型是一个不错的选择。
How to use jquery dialog in asp.net
执行每个javascript / jQuery Code Serverside
public void AnyButton_Click(Object sender, EventArgs e)
{
string script = "$('#theid').dialog('open');";
ClientScript.RegisterStartupScript(GetType(), "popup", script, true);
}