Click here to Skip to main content
16,008,010 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am opening a popup in which i have a textbox.i want to use ajax autocomplete extebder for this textbox.but its not able to call the webservice method for autocompletion.cant understand weather its a problem of postback or updatepanel.where i should use the update panel.My page containing popup div is already inside "updatepanel1" .code snap is given below..

<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false" >
                                            <contenttemplate>
<asp:TextBox ID="txtEditMPName" runat="server" Width="408px" AutoPostBack="true" BackColor="#CCFFFF" OnTextChanged="txtEditMPName_TextChanged">
<cc1:AutoCompleteExtender ID="ace2"  runat="server" BehaviorID="autoSuggest" DelimiterCharacters="" Enabled="true" MinimumPrefixLength="1" ServiceMethod="GetParty" CompletionInterval="10" EnableCaching="true" CompletionSetCount="1"  önClientShown="ShowOptions" TargetControlID="txtEditMPName" FirstRowSelected="True" CompletionListCssClass="AutoCompleteCompletionList" CompletionListHighlightedItemCssClass="AutoCompleteCompletionListHighlightedItem" CompletionListItemCssClass="AutoCompleteCompletionListItem">

</contenttemplate>
 <triggers>
<asp:AsyncPostBackTrigger ControlID="txtEditMPName" EventName="TextChanged" />
</triggers>
Posted
Updated 30-Dec-13 1:17am
v4

1 solution

Problem which I can see

ServicePath Property is not defined for the AutoCompleteExtender.
Refer- AutoComplete Demonstration[^]
Quote:
ServicePath - The path to the web service that the extender will pull the word\sentence completions from. If this is not provided, the service method should be a page method.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900