jquery call :
$.ajax({
type: 'POST',
url: 'AddProgressBar.aspx/GetUpdateStatus',
cache: false,
async: true,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response, type, xhr) {
var retVal = JSON.stringify(response);
alert("hiiiiiiiii");
window.alert(JSON.parse(retVal).GetJSONDataResult);
},
error: function (xhr) {
window.alert('error: ' + xhr.statusText);
}
});
cs file ::
[WebMethod]
[WebInvoke(Method = "GET", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json, UriTemplate = "json")]
public static string GetUpdateStatus()
{
return GetUserAddStatus();
}