Call ASP.NET Page Methods using your own AJAX

added by rcash
8/19/2011 11:42:50 AM

159 Views

ASP.NET has grown tremendously over the years. Especially after Microsoft has introduced JQuery as a primary javascript development tool. However with AJAX, many developers do seek places to actually call a page using normal AJAX based applications. In this post I will show you how to invoke your own page methods using AJAX.


1 comments

vijayst
8/20/2011 1:04:47 AM
ASP.NET MVC works well with jQuery and AJAX. With jQuery, you can call a controller action directly via GET or POST. The controller has a method Json() that will convert the object into a JSON object. JSON objects have properties which can be directly used in Javascript. This makes the Javascript code more object oriented. MVC is a very good platform for developing AJAX applications that rely on JSON.