c#怎样遍历 DropDownList1的每个ListItem的值 c#怎样遍历 DropDownList1的每个ListItem的值 是用foreach 怎么用呢foreach(string text in dropdownlist1.listitem)>>>>???????????????????教教我 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 foreach(ListItem item in this.dropdownlist1.Items){ response.write(item.text); response.write(item.value);} 谢谢,但是显示出来的怎么只有一个item.text呢?该是多个啊 显示出来是最后一个LISTITEM????? string text = "";string val= "";foreach(ListItem item in this.dropdownlist1.Items){ text += item.text; val += item.value}response.write(text);response.write(val); 请教一个XML模板问题 谁能帮我讲解一下在List.Sort()方法中使用委托的意义 在net下 用 c#怎么制作 dll文件? WPF中listBox控件滚动条重绘问题 关于ReFresh刷新问题 请问高手!给点学习指导 ! 避免走些弯路 求解:删除,修改按钮不管用怎么办 这个问题比较棘手,不知道这里有没有人能解决 关于DataView的RowFilter问题 请问:如何让自定义控键响应方向键?谢了。 powerdesigner问题:在生成数据库时怎样把字段的中文说明一起加进去 如何让SQL server2005数据表的日期字段接受dateTimePicker1日期的更新
{
response.write(item.text);
response.write(item.value);
}
string text = "";
string val= "";
foreach(ListItem item in this.dropdownlist1.Items)
{
text += item.text;
val += item.value
}
response.write(text);
response.write(val);