返回首页

您好,

数据在运行时绑定"的SelectedIndexChanged"DropDownList的事件不会触发。

请给我解释一下可能是什么原因,并提醒我。

感谢

ķ乌代

回答

评论会员:NDebata 时间:2012/02/04
设为AutoPostBack属性,DropDownList的真实
评论会员:Tarun.KS 时间:2012/02/04
!把下拉里面绑定的方法回传的情况
例如:

Page_Load()

{

if(!IsPostBack)

{

   BindDropDown();

}

}

 

private void BindDropDown()

{

//Write the databinding logic

}
也使AutoPostBack属性为下拉真
评论会员:sudeshchandram 时间:2012/02/04
。设置的AutoPostBack = quot; truequot
<asp:DropDownList ID="asp:DropDownList1" AutoPostBack="true" runat="server"  </asp:DropDownList>
评论会员:Tarun.KS 时间:2012/02/04
。DropDownList的AutoPostBack属性必须设置为true

例如:

<asp:DropDownList ID="DropDownList1" AutoPostBack="true" runat="server"  </asp:DropDownList>
评论会员:游客 时间:2012/02/04
|T|oniyo|J|ackson
使用manualEntry.Activate()

]
评论会员:游客 时间:2012/02/04
|mahabubur拉赫曼:这是极轻的一篇文章,可能是更好的一个提示/技巧。戴夫找到我:{A}折叠统计:{A2的}