24
rated 0 times
[
25]
[
1]
/ answers: 1 / hits: 111911
/ 13 Years ago, mon, april 11, 2011, 12:00:00
{id:2231f87c-a62c-4c2c-8f5d-b76d11942301}
If I alert the response data I see the above, how do I access the id
value?
My controller returns like this:
return Json(
new {
id = indicationBase.ID
}
);
In my ajax success I have this:
success: function(data) {
var id = data.id.toString();
}
It says data.id
is undefined
.
More From » json