当前位置: 代码迷 >> ASP.NET >> DropDownList 的Enable PostBack选中后没反应,该怎么解决
  详细解决方案

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

热度:3832   发布时间:2013-02-26 00:00:00.0
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 "/>
  相关解决方案