日期:2014-05-19  浏览次数:20367 次

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 "/>