Link to home
Start Free TrialLog in
Avatar of ProgrammerAtAIMS
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 :
$(document).ready(function () {
       $("#<%=txtSearch_File.ClientID%>").autocomplete(
      //some code here
}

Open in new window


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>

Open in new window


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>

Open in new window

Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

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
Avatar of ProgrammerAtAIMS
ProgrammerAtAIMS

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial