`
javatoyou
  • 浏览: 1016765 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

报错:不能在 DropDownList 中选择多个项

 
阅读更多
做了个二级联动,因为图简单,用了updatepanel,莫名其妙的弹了个错误出来
"不能在 DropDownList 中选择多个项",用以下方法解决了

this.DDL_Subject.ClearSelection(); //加这句清空就没事了
this.DDL_Subject.Items.FindByText(subjectname).Selected = true;
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics