日期:2014-05-17 浏览次数:20441 次
<asp:CheckBox ID="chkFlag" runat="server" />
int i = 0; foreach (ListViewItem c in ListView1.Items) { CheckBox chk = (CheckBox)c.FindControl("chkFlag"); if (chk != null && chk.Checked == true) { i = i + 1; } }