string Ta="哈哈,刘大哥,无奈,死人";
怎么得到
哈哈
刘大哥
无奈
死人
怎么得到
哈哈
刘大哥
无奈
死人
解决方案 »
- ★★请高手解决DllImport中文方法名问题★★
- C#开发一个更改IE主页的插件程序
- 求贴 加密/解密的算法或方法(给点一眼看不出来的哟,二眼就无所谓了)。
- 一个关于dataGrid 的问题,很急!
- 〖求助〗求教.NET问题
- 蛮长的代码有很小的错误
- 点击水晶报表里面的一个字段,怎么link到同一个程序里面的另外一个Form?
- 在.net中(C#),怎么实现动态生成textbox控件(点‘增加’按钮可增加,点‘checkbox’再点‘删除’按钮可删除所选的textbox)
- 到底什么控件类型能调用SetStyle()函数?
- 请教,多个ashx,只有两个能返回
- 散分题
- C#怎么修改EXCEL列的类型
a[0]就是哈哈,以此类推
string [] arr=Ta.Split(new char[]{','});
foreach(string str in arr){
System.out.WriteLine(str);
}
SqlDataAdapter da = new SqlDataAdapter("select * from 开考课程 where 级别='" + DropDownList级别.SelectedValue.ToString() + "' order by 本次码", cnnDB);
DataSet ds = new DataSet();
da.Fill(ds);
CheckBoxList1.DataSource = ds;
CheckBoxList1.DataTextField = "课程及代码";
CheckBoxList1.DataValueField = "本次码";
string[] a = TextBox4.Text.Split(',');
foreach(string str in a){
if (CheckBoxList1.DataValueField == str)
{
CheckBoxList1.SelectedValue = true;
}
}帮我看看 这段有错没
SqlDataAdapter da = new SqlDataAdapter("select * from 开考课程 where 级别='" + DropDownList级别.SelectedValue.ToString() + "' order by 本次码", cnnDB);
DataSet ds = new DataSet();
da.Fill(ds);
CheckBoxList1.DataSource = ds;
CheckBoxList1.DataTextField = "课程及代码";
CheckBoxList1.DataValueField = "本次码";
string[] a = TextBox4.Text.Split(',');
foreach(string str in a){
if (CheckBoxList1.DataValueField == str)
{
CheckBoxList1.SelectedValue = true;
}
}
就把checkbox勾选