Posts

Showing posts from December, 2013

Ajax method Example

Ajax method without parameters   $.ajax({ type: "POST", contentType: "application/json", data: "{}", url: "abcd.aspx/GetEvents", dataType: "json", success: function (data) {  }); }, error: function (XMLHttpRequest, textStatus, errorThrown) { debugger; } });   Ajax method with parameters $.ajax({ type: "POST", contentType: "application/json", data: strdata, url: "ViewEvents.aspx/GetEventsByDates", dataType: "json", success: function (data) {    }); }, error: function (XMLHttpRequest, textStatus, errorThrown) { debugger; } });   $.ajax({ type: "POST",