TextBox的值如:
张三,李四,网五
张三,李四,网五
解决方案 »
- GridView怎样根据字段显示图片
- js 数组 和乱码
- .ASPX中的子查询
- 在sqldatasource的sql查询语句中使用session中的数据
- 我的vs2008运行调试的时候,出现这样的提示页面!
- 求助高手!GridView问题!急!
- 未处理的“System.IO.FileNotFoundException”类型的异常出现在 mscorlib.dll 中
- 求如何知道某一年某一月的一号是星期几(C#),急……在线等,解决就结贴
- webservice应用程序中的服务器错误?
- 多个web button的问题
- 知道文件路径,如何将该文件上传到服务器
- (简单)Gridview 模板列 怎么添加事件
string res;
foreach(datarow itm in dt.rows)
res+=itm[0].tostring();textbox1.text= res;
for(int i=0;i<ds.Table[0].Rows.Count; i++)
{
if(this.TextBox.Text.Trim()==string.Empty)
{
this.TextBox.Text = ds.Table[0].Rows[i][0].ToString();
}
else
{
this.TextBox.Text +=","+ ds.Table[0].Rows[i][0].ToString();
}}
DataTable data=....
string temp="";
for(int i=0;i<data.Rows.Count;i++)
{
temp+=data.Rows[i]["name"].ToString()+",";
}
if(temp!=""){ temp=temp.Substring(0,temp.Length-1);}textbox1.Text=temp;
{
this.TextBox.Text = ds.Table[0].Rows[i][0].ToString();
}