Hello Sir,
I want to read the json object using ashx handler (request context formet)
As I am new to json so i just need basic example
I had gone through your article but in that you have read json object using
[System.Web.Services.WebMethod]..
$("#btnCity").live("click", function () {
var city = {};
city.Name = "Mumbai";
city.Population = 2000;
$.ajax({
type: 'POST',
url: 'MyPage.aspx/GetCity',
data: "{city:" + JSON.stringify(city) + "}",
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (r) {
alert(r.d.Name);
alert(r.d.Population);
}
});
});
how to read it using ashx handler
Thankyou