Web
jQuery
Instead of traditional ASP.NET AJAX approach for "Exposing Web Services to Client Script" you can use jQuery and JSON2 JavaScript libraries to achieve the same very easily. Using this simple method you can call any page method in ASP.NET Page or WebService method: function executeMethod(location, methodName, methodArguments, onSuccess, onFail) {
$.ajax({
type: "POST",
url: location + "/" + methodName,
data: methodArguments,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: onSuccess,
fail: onFail
});
} Here is an example also how to use JSON2 JavaScript library to serialize any JavaScript object to string: function getRequestData(tableView) {
return JSON.stringify({...