I want to pass the int i into the button onclick function for each list item. I expected the \"clickItem\" function will receive 0..2 for correspondig list item. But it come
I tried this, and it worked. Hope it seems helpful to you.
@foreach (var item in ListOfUser) { @item.FirstName GetDetail(item.UserId)) "> Click }