DropDownList控件取值的问题!!!帮帮忙,看一看! 假如DropDownList控件里有3个值,如何把DropDownList控件里的这3个值都取出来,付给一个变量,中间用逗号隔开!帮帮忙,谢谢你们了!!!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string tmpString=string.Empty; for (int index = 0; index < this.DropDownList1.Items.Count; index++) { if (string.Empty != tmpString) tmpString += ","; tmpString += this.DropDownList1.Items[index].Text; } bitpolar() 谢谢你了,我今天没有多少分,下次再多补你点,呵呵 大家好,想找本C# 2005的教程书,电子版,入门方面的 C#2008安装问题 [求教达人:超链接样式问题] 关于windows服务的问题 用C#做网站后台管理的问题 c#里如果调试win32下调用的函数 怎样配置Enterprise Library 2.0 C#高手们请进啊!!急!! vs2010F10调试问题 .Net中哪个类能实现Ping的功能?返回响应时间等信息 急求 能人 怎么解决提取图片中的文字和数字问题 急 电脑出现错误,点“确定”和“取消”都会重启电脑,为什么呀?
for (int index = 0; index < this.DropDownList1.Items.Count; index++)
{
if (string.Empty != tmpString)
tmpString += ",";
tmpString += this.DropDownList1.Items[index].Text;
}