循环增加checkboxlist的选项
循环增加checkboxlist的选项
public void SelectListIndex(ListControl lc,string values)
{
string[] tempValues = values.Split(',');
if (tempValues.Length > 0)
{
foreach (string tempvalue in tempValues)
lc.Items.Add(new ListItem(tempvalue ,tempvalue ));
}
}
<script type="text/javascript"><!-- google_ad_client = "pub-1985112462197986"; /* 728x90, 创建于 10-7-27 */ google_ad_slot = "9407691718"; google_ad_width = 728; google_ad_height = 90; //--> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>