Ajax method Example
Ajax method without parameters
$.ajax({
$.ajax({
$.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",
contentType: "application/json",
data: "{}",
url: "ViewEvents.aspx/GetEvents",
dataType: "json",
success: function (data) {$.ajax({
type: "POST",
contentType: "application/json",
data: "{}",
url: "ViewEvents.aspx/GetEvents",
dataType: "json",
success: function (data) {$.ajax({
type: "POST",
contentType: "application/json",
data: "{}",
url: "ViewEvents.aspx/GetEvents",
dataType: "json",
success: function (data) {$.ajax({
type: "POST",
contentType: "application/json",
data: "{}",
url: "ViewEvents.aspx/GetEvents",
dataType: "json",
success: function (data) {$.ajax({
type: "POST",
contentType: "application/json",
data: "{}",
url: "ViewEvents.aspx/GetEvents",
dataType: "json",
success: function (data) {$.ajax({
type: "POST",
contentType: "application/json",
data: "{}",
url: "ViewEvents.aspx/GetEvents",
dataType: "json",
success: function (data) {$.ajax({
type: "POST",
contentType: "application/json",
data: "{}",
url: "ViewEvents.aspx/GetEvents",
dataType: "json",
success: function (data) {
$.ajax({
type: "POST",
contentType: "application/json",
data: "{}",
url: "ViewEvents.aspx/GetEvents",
dataType: "json",
success: function (data) {
$.ajax({
type: "POST",
contentType: "application/json",
data: "{}",
url: "ViewEvents.aspx/GetEvents",
dataType: "json",
success: function (data) {
Comments