ProgrammerAtAIMS
asked on
jQuery AutoComplete not working inside ASP.Net AJAX UpdatePanel
I have a user control containing a textbox with jquery autocomplete. when I put this user control inside an ajax update panel the autocomplete wont work correctly I think because of Partial PostBack that occurs. Any Idea how to solve this issue?
this is my jquery code :
and the text box code:
and the call of the user control:
this is my jquery code :
$(document).ready(function () {
$("#<%=txtSearch_File.ClientID%>").autocomplete(
//some code here
}
and the text box code:
<asp:TextBox ID="txtSearch_File" runat="server" Height="22px" onfocus ="Change_txtfocus(this, event)" onblur ="Change_txtfocus(this, event)"
CssClass="textBoxStylerounded" Width="100%" AutoPostBack="true" ></asp:TextBox>
and the call of the user control:
<asp:UpdatePanel ID="PNL" runat="server" >
<ContentTemplate>
<uc10:UC_AutoFile_rev1 ID="UC_id" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
Just interested to know why you are putting the control in an update panel? The autocomplete does its own AJAX to update the control.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.