veerendra kumar

veerendra kumar

  • NA
  • 47
  • 20.3k

Jquery

May 6 2015 6:08 AM
 RETRUN  object has a one student record. how to parse the data
 
class Object
{
public int x{get;set;}
 public string y{get;set;}
public string z{get;set;}  
 
Object Get(int a)
{
Object a={1, "xyz","abc"};
retrun a;
}
 
 
 
 
$(document).ready(function () {
$.ajax({
Type: "Get",
url: 'http://localhost:30074/api/User/Get?id=7',
datatype: "json",
contentType: "Application/json",
data: {},
success: function (data) {
 
 
bind data to the T1,T2,T3 Textboxes.
 
}
alert(data);
},
error: function (e) {
alert("fail");
}

});



Answers (2)