prabha haran

prabha haran

  • NA
  • 81
  • 31.9k

how to send a list through json

Sep 8 2016 8:15 AM
public ActionResult Getcompvalues(int compitatorid)<br /> {<br /> List&lt;tbl_CompetitorDetail&gt; loadcompdata = new tbl_CompetitorDetail().Compdetaillist();<br /> var complist = loadcompdata.Select(x =&gt; x).Where(x =&gt; x.EntryId ==compitatorid).ToList();<br /><div> return Json (complist,JsonRequestBehavior.AllowGet);</div><div>&nbsp;</div><div>&nbsp;</div><div>this is my code i cannot send a list to ajax sucess(e)object</div>

Answers (3)