(是不是dropdownlist的BUG啊!)为何DROPDOWNLIST的项目选不中呢? 好像在代码中add或remove之类的操作就会出像这个问题关注 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Chang you Code:int Page_Load Eventif(!Page.IsPostBack){BinderYouDropDownList();} 比如这个:<asp:DropDownList id="DropDownList1" runat="server" AutoPostBack="True"> <asp:ListItem Value="3">第一行</asp:ListItem> <asp:ListItem Value="3">第二行</asp:ListItem> <asp:ListItem Value="1">第三行</asp:ListItem> <asp:ListItem Value="1">第四行</asp:ListItem> <asp:ListItem Value="2">第五行</asp:ListItem> <asp:ListItem Value="2">第六行</asp:ListItem></asp:DropDownList>当你选择“第六行”后,它会自动跳到“第五行”,因为value里第一个“2”是“第五行”我的理解而已。 谢谢各位,确实是VALUE的问题,如果相同时会出现这种情况。 打开生成的EXCEL文件 new System.IO.MemoryStream(); 能自动读取内存的信息么?? 能否代码调用VS.NET2005的中的格式化C#代码的功能? 加载相同数据库的问题? 那位高手指点迷津??在线时间问题~~ 无主键情况下怎么删除重复记录 asp.net电子商务入门经典的源码!(vb) 求助:同一帐号多点登陆问题 调用的目标发生了异常...... 怎么样正确引用本地webservice,我引用老出错 asp.net有何用????? FreeTextBox1.6.3用过这个控件的,快来看看,着急!!!
{
BinderYouDropDownList();
}
<asp:DropDownList id="DropDownList1" runat="server" AutoPostBack="True">
<asp:ListItem Value="3">第一行</asp:ListItem>
<asp:ListItem Value="3">第二行</asp:ListItem>
<asp:ListItem Value="1">第三行</asp:ListItem>
<asp:ListItem Value="1">第四行</asp:ListItem>
<asp:ListItem Value="2">第五行</asp:ListItem>
<asp:ListItem Value="2">第六行</asp:ListItem>
</asp:DropDownList>当你选择“第六行”后,它会自动跳到“第五行”,因为value里第一个“2”是“第五行”我的理解而已。