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

GridView模板中使用DropdownList时候 为什么不能触发Indexchanged事件?该怎么解决

2012-03-04 
GridView模板中使用DropdownList时候 为什么不能触发Indexchanged事件?代码如下:footertemplateasp:Dro

GridView模板中使用DropdownList时候 为什么不能触发Indexchanged事件?
代码如下:
<footertemplate>
<asp:DropDownList   ID= "dropDownListWLTAlertPriority "     AutoPostBack= "true "   runat=server   width= "80px ">
            <asp:ListItem> 1 </asp:ListItem>      
            <asp:ListItem> 2 </asp:ListItem>      
            <asp:ListItem> 3 </asp:ListItem>      
            <asp:ListItem> 4 </asp:ListItem>      
            <asp:ListItem> 5 </asp:ListItem>      
</asp:DropDownList>
</footertemplate>



[解决办法]
在 <DropDownList> 控件中添加事件OnSelectedIndexChanged= "dropDownListWLTAlertPriority_SelectedIndexChanged "
server 加双引号
即可
[解决办法]
你的事件处理程序再哪里?

热点排行