domenica 15 febbraio 2009

ASP.NET, Web Services and Json: a different approach with jQuery

In a previous article I explained how it is possible to implement in ASP.NET a client/server application based on Json web services.

The client side was implemented using all the amazing possibilities offered by WCF and the Ajax support of DotNet, but this isn't the only possibility, we can consume a web service through jQuery library.

Implementing the application with jQuery requires a few changes to the previous code:
- The ScriptManager control is no more required
- It's necessary to include the jQuery Javascript library (i.e. from AJAX Libraries API site:
- Some minor changes to the Javascript and HTML code of the Default.aspx page.

Thanks to Alberto for some good pieces of code and useful explanations.

Download sample

Nessun commento: