Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have used below coding to fetch name from database when user enter alphabets in the textbox(Note: when user enter A, name starts with A all the names should be shown). In below code SERVICE not working i dont knw wats the problem. i tried with debugging also but not working. where i have done the mistake, help me out


XML
<asp:UpdatePanel ID="upane1" runat="server">
                      <ContentTemplate>
                      <asp:TextBox ID="txtsrchitem" runat="server" CssClass="txt_box"></asp:TextBox>

XML
<cc1:AutoCompleteExtender runat="server" TargetControlID="txtsrchitem"
                           ServicePath="~/SERVICES/Service02.svc" ServiceMethod="Loadtxtitem" EnableCaching="true" MinimumPrefixLength="1"
                           CompletionInterval="500" CompletionSetCount="12" CompletionListCssClass="AutoExtender"
                           CompletionListItemCssClass="AutoExtenderList" CompletionListHighlightedItemCssClass="AutoExtenderHighlight"
                           CompletionListElementID="divwidth">
                        </cc1:AutoCompleteExtender>
                        <ajax:TextBoxWatermarkExtender TargetControlID="txtsrchitem" ID="twsrchitem" runat="server" WatermarkText="Enter Item Name">
                        </ajax:TextBoxWatermarkExtender>
                        </ContentTemplate>
                        </asp:UpdatePanel>
Posted

1 solution

1st declare static dataset for autocomplete then check is there any value in dataset or not.
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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