platform is VS2015, just copy from demo website to text, type "Hel" in the textbox without response. seems no more setting! grateful for help!
File - Webform1.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"/> <asp:TextBox ID="TextBox1" runat="server" Width="500px" Font-Size="Medium"/> <ajax:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="TextBox1" ServicePath="~/WebService1.asmx" ServiceMethod="HelloWorld" Enabled="true" MinimumPrefixLength="1" CompletionInterval="200"> </ajax:AutoCompleteExtender> </div> </form> </body> </html>
File - WebService1.asmx
Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.ComponentModel
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _ <System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ <ToolboxItem(False)> _ Public Class WebService1 Inherits System.Web.Services.WebService <WebMethod()> _ Public Function HelloWorld() As String Return "Hello World" End Function
End Class