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

CheckListBox 的小问题
怎么在初始化CheckListBox时

使得它的某一项已经被选中?

找不到怎么给值....

------解决方案--------------------
<asp:CheckBoxList ID= "aa " runat= "server ">
<asp:ListItem Text= "1 "> </asp:ListItem>
<asp:ListItem Text= "2 "> </asp:ListItem>
<asp:ListItem Text= "3 "> </asp:ListItem>
</asp:CheckBoxList>

aa.SelectedIndex = 0;
aa.SelectedValue = "2 ";
------解决方案--------------------
msdn

好好学学……