views:

645

answers:

3

hi,

i am looking for a basic example that shows how i could call a webservice with the client side javascript that comes with the ASP.NET Ajax Toolkit.

i already found some example that shows how you do it with ASP.NET WebForms but i am using ASP.NET MVC so no fancy ScriptManager for me :(

does somebody know a insightful blog posting about this topic?

tia

+3  A: 

I recommend using JQuery and this guide is very straightforward for calling an ASP.NET Web Service:

http://encosia.com/2008/03/27/using-jquery-to-consume-aspnet-json-web-services/

BobbyShaftoe
+1  A: 

See this post for a description of how this can be accomplished using AJAX for ASP.NET MVC.

If you have control of the service your self and if it is possible you could consider exposing it as a REST-like interface via WebHttpBinding and WCF. Then use jQuery to query the service.

veggerby