foreach (Control ct in Controls)
if (ct.GetType().ToString().Equals("System.Web.UI.HtmlControls.HtmlInputCheckBox"))
{
{
HtmlInputCheckBox cb = (System.Web.UI.HtmlControls.HtmlInputCheckBox)ct;
if (cb.Checked == true)
{
cb.Value = "true";
}
else
cb.Value = "false";
}
}
User表 ID、Name、RoleID
Role表 ID、Name、IsDelete、IsSelect、IsModify、IsAdd (带IS的都是Bool类型的)