首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

不能在 DropDownList 中选择多个项。帮帮小弟~解决办法

2012-03-04 
不能在 DropDownList 中选择多个项。???????????帮帮小弟~~~~~~~~错误:不能在DropDownList中选择多个项List

不能在 DropDownList 中选择多个项。???????????帮帮小弟~~~~~~~~
错误:   不能在   DropDownList   中选择多个项


ListItem   item   =   new   ListItem();
                 
                for   (Int64   i   =   1;   i   <3;   i++)
                {
                     
                        item.Text   =   "第 "   +   i.ToString()   +   "页 ";
                        item.Value   =   i.ToString()   ;
                        dyeshu.Items.Add(item);
       
                }
                dyeshu.ClearSelection();

[解决办法]
你设置他的mutilySelect = true了么
[解决办法]
DropDownList 不能多选。。

你要多选就用ListBox
[解决办法]
dyeshu.ClearSelection(); 如果你用这个方法,必须将dyeshu.Items里的项Selected设置为false
[解决办法]
本来就不能多选的啊
[解决办法]
<select id= "aaa " multiple >

热点排行