日期:2014-05-20  浏览次数:20708 次

RadioButton的问题
先是用 <asp:GridView 绑定列表数据,
 <asp:RadioButton ID="rbaudit2" runat="server" checked="true" GroupName="rbaudit" Text="未审" />
  <asp:RadioButton ID="rbaudit3" runat="server" GroupName="rbaudit" Text="合格" />
通过RadioButton 来判断条件;
问题是:比如当我 选择 RadioButton 里的合格条件查询时,进行翻页是偶尔会出现 自动选择 “未审” 这个选项;




------解决方案--------------------
checked="true"
------解决方案--------------------
你看下这是问题造成的!
------解决方案--------------------
翻页时出现问题 要么翻页前保存RadioButton出错,要么重新查询后绑定数据出错。
------解决方案--------------------
在“合格”上加上Checked="true";