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

DropDownList 的Enable PostBack选中后没反应,该怎么解决

2012-01-28 
DropDownList 的Enable PostBack选中后没反应最近在看ScottMitchell的asp2.0,出现这问题:DropDownList的En

DropDownList 的Enable PostBack选中后没反应
最近在看Scott   Mitchell的asp2.0,出现这问题:DropDownList   的Enable   PostBack选中后不更新,原请问什么原因?

[解决办法]
AutoPostBack属性改下
[解决办法]
什么是“Scott Mitchell的asp2.0”?
[解决办法]
如果可以含糊地说,那么Mitchell不但这样说了,整个msdn以及asp.net也都是这么说的。
[解决办法]
那就奇怪了,应该是你什么地方弄错了。
1.你在出错的页面上新建一个DropdownList,设置AutoPostback为true试试
2.你新建一个页面,在此页面上新建一个DropdownList,设置AutoPostback为true试试
[解决办法]
没有指定DropdownList的SelectedIndexChanged事件吧,只设置AutoPostback没有用

http://msdn2.microsoft.com/zh-cn/library/system.web.ui.webcontrols.listcontrol.selectedindexchanged(VS.80).aspx


<asp:RadioButtonList id= "RadioButtonList1 "
OnSelectedIndexChanged= "Index_Changed "
AutoPostBack= "true "
runat= "server "/>

热点排行