More ASP.NET PageMethods with jQuery and JSON
1/28/2012
The PageMethod is a static method in an ASPX page codebehind that is decorated with the WebMethod attributeThis can be called from external client code via the url "PageName.aspx/MethodName"Using jQuery's $ajax function is probably the easiest way to make these calls,although they can also be called via Microsoft AJAX and by other means.
Here we provide three examples of PageMethods, of increasing complexity, and show how to set up each PageMethod, as well as how to consume and display
Similar articles
ASP.NET Daily Articles
ASP.NET PageMethods with jQuery, JSON and Templates
This article and demo illustrate the use of the PageMethod to retrieve a list of current stock quotes from Yahoo finance, parse them into a List of .NET Quote objects, and return this result to the ca...
ASP.NET Daily Articles
Using PageMethods and JSON in ASP.NET AJAX
This article describes how to use ASP.NET AJAX PageMethods to submit data to the server and get response. It also shows how to serialize object into JSON format and access its properties in JavaScript...
ASP.NET Weblogs
ASP.NET MVC com jQuery + JSON
Sobre o jQuery Apesar de ser um dos mais comentados “lançamentos” dos últimos anos, muita gente ainda não sabe e não tem prática com jQuery. Mas o mais legal disso é que o jQuery não tem nada de novi...
ASP.NET Daily Articles
Populating RadioButtonList Using jQuery, JSON in ASP.Net
Building a RadioButtonList on the client side is not a straightforward task. In this article, we will overcome this difficulty using the jQuery library and JSON to construct the RadioButtonList items ...