iam new to vs 2010. i have an webservice that is working fine when invoked. but when it is used in the autocomplete ajax control in asp.net. it is not responding. i know there needs to be changes made in the web.config file which i dont know.
need to know what iam missing. these are the steps that i've followed:
1) declared the webmethod in the following manner which when invoked gives me the desired result
[System.Web.Services.WebMethod(EnableSession = true)]
public string functionname(string prefixText)
2) used these properties in the autocomplete tool kit
ServicePath="ServiceName.asmx" ServiceMethod="functionname" MinimumPrefixLength="1" CompletionInterval="100" CompletionSetCount="1" EnableCaching="true"
3) included the script manager code
4) included the following in web.config under System.web tag
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory" validate="false" />
when run the autocomplete does not work. don't know what iam missing please help.