دنبال کننده ها

۱۳۹۶ بهمن ۱۱, چهارشنبه

c# - Updating Records not working ASP.net MVC

[ad_1]



I'm having an issue with editing records list; basically the id comes from the amount of records on that record number. I'm using an array (don't know the elements of the array); I get the position and then assign it to that index position but doesn't seem to be working I will get the edit page but there are no records there to edit. Have not reached the httppost as yet.



public ActionResult Update(int id)

int[] Array = ;
int Element = id;


for (int i = 0; i < Array.Length; i++)

Element = Array[i];

getStudent.item = getStudent.items[i];




return View(getStudent);




[ad_2]

لینک منبع