Click here to Skip to main content
15,908,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to pass Complex List to Controller through Json

JavaScript
var objContactColletion=  [
  {"UserEntity":{"UID":"1","Name":"jhon"},
 { "ContactEntity":{"Cont_ID":"2","Contact_No":"Aron"}
];

   $.ajax({
      type: "POST",
      url: "ContactDetails",
      dataType: "json",
      data: { students: JSON.stringify(objContactColletion) },
      success: function (result) {
          alert('success');
      },
      error: function (result) {
          alert(result.responseText);
      }

  });
Posted
Comments
Er. Puneet Goel 4-Apr-14 0:20am    
What is the issue here you are facing? any error or what?
Member-515487 4-Apr-14 8:32am    
listing getting null

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900