带有触发器和jQquery的Ajax更新面板 [英] Ajax Update Panel with triggers and jQquery

查看:88
本文介绍了带有触发器和jQquery的Ajax更新面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用更新面板来填充另一个dropdown selectionchanged事件的下拉列表,但是当我在同一页面上使用jQuery在文本框中自动完成时不调用此事件吗?
请帮助我.


我的下拉HTML源代码是这样的:

I am using an update panel to fill a dropdown on another dropdown selectionchanged event, but this event is not called when I use jQuery on the same page for autocompletion on a text box ?
Please help me in this.


My dropdown HTML source is this:

<asp:DropDownList ID="ddllocscheme" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddllocscheme_SelectedIndexChanged"
                                  CssClass="loginboxform" Width="150px">



另一个下拉列表是这样的:



another dropdown is like this:

 <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" ChildrenAsTriggers="true">
 <contenttemplate>
 <asp:DropDownList ID="txtschemeno" runat="server" AutoPostBack="True" OnSelectedIndexChanged="txtschemeno_SelectedIndexChanged"
  CssClass="loginboxform" Width="150px">
 
</contenttemplate>
<triggers>
 <asp:AsyncPostBackTrigger ControlID="ddllocscheme" EventName="SelectedIndexChanged" />                                
</triggers>



我使用这个jQuery脚本:



and I use this jQuery script:

$(document).ready(function() {
    $("#<%=txtLDA.ClientID%>").autocomplete(''LDSNo_List.ashx'');
});

推荐答案

(文档).ready(function(){
(document).ready(function() {


(#<%= txtLDA. ClientID%>).autocomplete(''LDSNo_List.ashx''); });
("#<%=txtLDA.ClientID%>").autocomplete(''LDSNo_List.ashx''); });


这篇关于带有触发器和jQquery的Ajax更新面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆