当我选择第一项时,下拉列表不会触发? [英] Dropdownlist Not Fires When I Select The First Item ?
本文介绍了当我选择第一项时,下拉列表不会触发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi guys ,
i have a one dropdown list ,when i select first item(Followup)
OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" is not firing .. please help me guys
<asp:DropDownList ID="ddlprocess" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem>FollowUp</asp:ListItem>
<asp:ListItem>Appointment</asp:ListItem>
<asp:ListItem>Closed</asp:ListItem>
</asp:DropDownList>
帮助我..
谢谢。 。
help me ..
thanks . .
推荐答案
只是尝试将代码中的选择更改方法从 DropDownList1_SelectedIndexChanged 重命名为 ddlprocess_SelectedIndexChanged up on OnSelectedIndexChanged =ddlprocess_SelectedIndexChanged>
希望这有助于
just try to rename your selection change method in code behind from DropDownList1_SelectedIndexChanged to ddlprocess_SelectedIndexChanged also the mark up as OnSelectedIndexChanged="ddlprocess_SelectedIndexChanged">
Hope this helps
将.aspx文件中DropDownList1的AutoPostBack属性设置为true
AutoPostBack =True
set AutoPostBack property to true of DropDownList1 in .aspx file
AutoPostBack="True"
这篇关于当我选择第一项时,下拉列表不会触发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文