小弟是.NET的初学者.提个小小的问题. 你应该是想绑定CheckBox的标题吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 en , it must be the title!! 不好意思,我没说清楚,是把每个人的名字绑定到checkboxlist的每个ListItem的value上,其实主要问题是怎么把数据库里一段记录分开. string str;str.Split('|');//假设你是用'|'将字符串隔开的 用控件 CheckBoxListCheckBoxList.DataTextField="字段一";CheckBoxList.DataValueField="字段二";CheckBoxList.DataSource=DataSet.Tables("表名").DafaultView;CheckBoxList.DataBind(); 要几个CheckBox就看你的table里有几条记录了 CheckBoxList.DataTextField="字段一";CheckBoxList.DataValueField="字段二";CheckBoxList.DataSource=DataSet1.Tables["表名"].DafaultView;CheckBoxList.DataBind(); changezhong(小刀)谢拉 我是 第一次提问题 题没说清楚 请大家见量啊 哈哈 以后会注意的 visual studio的提示如何固定 数据绑定的问题 如何获取字符串的短文本? 我的VS2008中没有DllImport?只有DllImportAttribute 在Oracle中用Decode函数如何对输出的字段进行判断? HttpWebRequest问题 wmp.dll播放媒体出现的问题 veritas是做什么用的 水晶报表导出格式排版问题 求水晶报表学习电子书!!! 求Rational rose for C# addin 为什么在dataGrid上按ctrl+c程序就歇菜了?
str.Split('|');//假设你是用'|'将字符串隔开的
CheckBoxList.DataValueField="字段二";
CheckBoxList.DataSource=DataSet.Tables("表名").DafaultView;
CheckBoxList.DataBind();
CheckBoxList.DataValueField="字段二";
CheckBoxList.DataSource=DataSet1.Tables["表名"].DafaultView;
CheckBoxList.DataBind();