标签:style blog http color os ar for div art
webform中获取repeat控件列表下的checkbox选中的值:
码农上代码:
public static string getSelectedIDs(Repeater Rpt_) { string res = string.Empty; foreach (RepeaterItem rtpItem in Rpt_.Items) { HtmlInputCheckBox obj = rtpItem.FindControl("checkbox") as HtmlInputCheckBox; if (obj != null) { if (obj.Checked == true) { res += obj.Value.ToString() + ","; } } } if (!string.IsNullOrEmpty(res)) { res = res.Remove(res.LastIndexOf(‘,‘)); } return res; }
文章来至:http://qeedai.com/article/detail/55
webform开发经验(一):Asp.Net获取Checkbox选中的值
标签:style blog http color os ar for div art
原文地址:http://www.cnblogs.com/benpao/p/3976007.html