【发布时间】:2012-01-04 00:02:33
【问题描述】:
<asp:RadioButton ID="rdoComm" runat="server" Text="Business Investment" AutoPostBack="true"
GroupName="selectionType" OnCheckedChanged="rdoComm_CheckedChanged" />
<asp:RadioButton ID="rdoRes" runat="server" Text="Real Estate" GroupName="selectionType"
AutoPostBack="true" OnCheckedChanged="rdoRes_CheckedChanged" />
<asp:RadioButton ID="rdoBoth" runat="server" Text="Both" GroupName="selectionType"
AutoPostBack="true" OnCheckedChanged="rdoBoth_CheckedChanged" />
每当我使用“Page_ClientValidate('group')”强制验证时,单选按钮不会回发,但是如果我不使用我提到的方法并将其留给 asp.net 验证,即使页面无效单选按钮仍在回发。
单选按钮不用于回发,而是用于隐藏和显示页面上的控件。
有什么想法吗?>?
【问题讨论】:
标签: javascript asp.net validation