[英]Pop-up with radiobuttons
I have a registration page where i have a register button and when it is clicked i have to get a pop up with radio buttons like parent and child.How to do this without javascript?I am using c# and asp.net. 我有一个注册页面,其中有一个注册按钮,当我单击它时,我必须弹出一个带有父级和子级之类的单选按钮的窗口。如何在没有javascript的情况下做到这一点?
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True"
Visible="False">
<asp:ListItem>parent</asp:ListItem>
<asp:ListItem>child</asp:ListItem>
</asp:RadioButtonList>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
<cc1:ModalPopupExtender ID="RadioButtonList1_ModalPopupExtender" runat="server" PopupControlID="form1"
DynamicServicePath="" Enabled="True" TargetControlID="Button1">
</cc1:ModalPopupExtender>
</div>
</form>
</body>
You could just submit what the user has done so far, and direct to a different page with those radio buttons. 您可以只提交用户到目前为止所做的事情,然后使用这些单选按钮将其定向到其他页面。 Or make a link to pop-up a new window to the radio buttons perhaps.
或者建立链接以弹出一个新窗口到单选按钮。 Or use css hoveron effect to mimic a popup block, thought this doesn't work like buttons.
或使用css悬停效果来模仿弹出框,以为这不像按钮那样工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.