日期:2014-05-18  浏览次数:20471 次

在asp.net页面上我选择了检查框“chk全部”,为什么不会执行下面这个事件过程呢
protected void chk全部_CheckedChanged(object sender, EventArgs e)
  {
  if (chk全部.Checked == true)
  chk局部.Checked = false;
  }

我是初学者,请指教。谢谢!

------解决方案--------------------

这个CheckBox的autopostback属性设为true了吗?
------解决方案--------------------
C# code

    <asp:DropDownList ID="DropDownList1" AutoPostBack="true" runat="server">
    </asp:DropDownList>