标签:
获取(Repeater)复选框选中的id
private string getParam() { string param = ""; foreach (RepeaterItem item in repInfo.Items) { HiddenField hidID = (HiddenField)item.FindControl("hidID"); System.Web.UI.HtmlControls.HtmlInputCheckBox cb_sel = (System.Web.UI.HtmlControls.HtmlInputCheckBox)item.FindControl("cb_sel"); if (cb_sel.Checked) { param += cb_sel.Value + ","; } } return param.Substring(0, param.Length - 1); }
标签:
原文地址:http://www.cnblogs.com/2333hh/p/5226780.html