3
Answers

how to send a list through json

prabha haran

prabha haran

8y
259
1
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)