$.fn.show =
function(Id) { var ajaxOpts = {type:
"POST",url:
"/TestPage.aspx/Variable",data:
"{VariableID: '" + Id+ "'}",contentType:
"application/json; charset=utf-8",dataType:
"json",success:
function(response) { var result1 = getAspNetResponse(response); // Make a second request to another aspx page and if there is data then appens to original resultvar result2 = Makesecondrequest();
if (result2 != null)result1 += result2;
},error: function(response) {
alert('E2030569841: There is an error while loading data.');
}
};
$.ajax(ajaxOpts);
}