c# - Ajax inside MOSS 2007 Web Part -
I am creating a web part in MOSS 2007 which includes an autopaplaytexter.
My Web service
[System.Web] by adding all the configuration in Web.config (example) I have AJAX-enabled .Script.Services.ScriptService] Public class autocomplete: System.Web.Services.WebService {[System.Web.Services.WebMethod] [System.Web.Script.Services.ScriptMethod] Public String [] GetCompletionList (string prefix text , Integer number) {list & lt; String & gt; Results = New list & lt; String & gt; (); Results.Add ("here"); Results.Add ("here"); Results.Add ("here"); Results.Add ("here"); Results.Add ("here"); Results.Add ("here"); Results.Add ("here"); Return result. Toure (); }}
I am able to hit the web service from a web browser. However, the autocomplete operator does not call my web service.
My web service URL: (I used this extension to the service path). My Web Part Page:
I also tried to add a calendar addresser on the page and renders it under the calendar text box and shows as inline HTML.
Thank you
You think from a web service URL that you Your site is placed in the root folder. This will not work because this folder will see files in the content database that is controlled by SharePoint VirtualPathProvider.
You should put your web service in the subdirectory or 12Hive \ ISAPI or 12Hive \ LAYOUTS and then its corresponding
http: // [myserver] / _vti_bin / Call via [Folder] / etoscimal.mx
or
> http: // [myserver] / _layouts / [folder] / autocomplete. Amx
Comments
Post a Comment