I have Function in Jquery :
here the function that i call from asp.net mvc3:
as you see this function returns object - MStatus with variable : IsDone , I tried to check the value of IsDone , but I couldn't , Can someone tell me how to solve my problem!!!
thanks in advance!
Code:
function CheckStatus() {
$.ajax({
url: "http://localhost:1111/test.myControl/GetDone",
type: "GET",
dataType: "jsonp",
success: function (data) {
console.info(data.GetStatusResult);
if (data.IsDone) {
result = true;
CheckForFile();
}
else
result = false;
}
});
}
Code:
public MStatus GetDone()
{
......
return new MStatus { IsDone = IsDone, NowDateTime=DateTime.Now};
}
thanks in advance!
Comment