Check the Edit Data From List Collection.

Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 699

i post the Code Check the Particular Data with List Collection.

public ActionResult Edit(int id)
objCl = lstRec();
List<EmpClass> lstRempE = new List<EmpClass>();

foreach (var obj1 in objCl)
if (obj1.Id == id)
lstRempE.Add(new EmpClass { Id =obj1.Id, Ename = obj1.Ename, Empno =obj1.Empno, Amt =obj1.Amt});
return View(lstRempE);

Comments or Responses

Login to post response