ASP.NET RadioButtonList 取消选择
我有一个单选按钮列表:
<asp:RadioButtonList ID="rblSwitch1" runat="server"
onselectedindexchanged="rblSwitch1_SelectedIndexChanged"
style="margin-left: 0px" AutoPostBack="True">
<asp:ListItem Value="0">New Shipment</asp:ListItem>
<asp:ListItem Value="1">Existing Shipment</asp:ListItem>
</asp:RadioButtonList>
由于某种原因,有时一天 5 次,点击后会取消选择。我不知道是什么导致了这个问题,并且很难尝试自己复制这个问题,我只知道这对于使用我的软件的人来说是一个问题。如果可以的话,我该如何改变,使其一旦被选择,就保持这种状态。
protected void rblSwitch1_SelectedIndexChanged(object sender, EventArgs e)
{
}
I have a radiobuttonlist:
<asp:RadioButtonList ID="rblSwitch1" runat="server"
onselectedindexchanged="rblSwitch1_SelectedIndexChanged"
style="margin-left: 0px" AutoPostBack="True">
<asp:ListItem Value="0">New Shipment</asp:ListItem>
<asp:ListItem Value="1">Existing Shipment</asp:ListItem>
</asp:RadioButtonList>
that for some reason, occasionally like 5 times a day will deselect after it clicked on. I don't what is causing this and have a hard time trying to replication this my self, I just know it is a problem for for the people using my software. How do I change, if I can, to make it so once it is select, it stays that way.
protected void rblSwitch1_SelectedIndexChanged(object sender, EventArgs e)
{
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查“rblSwitch1_SelectedIndexChanged”方法以确保它没有重定向回此页面,或者以其他方式设置 rblSwitch1 的 SelectedValue。
Check the 'rblSwitch1_SelectedIndexChanged' method to make sure it's not re-directing back to this page, or otherwise setting the SelectedValue of rblSwitch1.