私のjqueryからWebサービスを次のように呼び出しています
$.ajax({
type: "POST",
url: "/DataService.asmx/Search",
contentType: "application/json; charset=utf-8",
data: "{'date' : '" + $("#txtDate").val() + "'}",
dataType: "json",
success: function (data) {
},
error: function (req, status, error) {
}
});
データ内で次のような値を受け取っています"[{"Id":10,"Name":"abdul samathu","Mobile":"8147708287","Email":"shanish.mca@gmail.com"}]"
ここでどうすれば一人で値を取得できますか、私は次のように試しました
var name=data.Name;
var mobile=data.Mobile like this, but its not working can anyone help me here