Hi Johnbhatt,
thanks a lot to reply to AutoCompleteExtender probelm, actually i am not using sql, i am trying to give static data in webservice and accessing it..
its working very fine in my local system but when i am putting the same code to sever, AutoCompleteExtender is not working...
AutoComplete.aspx
<body>
<form id="form1" runat="server">
<asp:ScriptManager id="ScriptManager1" runat="server" EnablepageMethods="true">
</asp:ScriptManager>
<div>
<asp:TextBox ID="txtAuto" runat="server"></asp:TextBox>
<cc1:AutoCompleteExtender
runat="server"
ID="autoComplete1"
TargetControlID="txtAuto"
ServiceMethod="search1"
ServicePath="~/WebService_Auto.asmx"
MinimumPrefixLength="1"
CompletionInterval="100"
EnableCaching="true"
ShowOnlyCurrentWordInCompletionListItem="true">
</cc1:AutoCompleteExtender>
</div>
</form>
</body>
WebMethod in WebService_Auto
<WebMethod()> _
Public Function search1(ByVal prefixText As String) As String()
Dim arr As String() = New String() {"abc", "def", "hij", "ab", "de", "hi", "ac", "df", "hj", "bc", "def", "hij"}
Dim y = (From _ar As String In arr Where _ar.ToLower.StartsWith(prefixText.ToLower) Select _ar)
Return y.ToArray()
End Function
you plz see it, its working fine in my local but not in server...
Dipakagarwal, if this helps please login to Mark As Answer. | Alert Moderator