Link to home
Start Free TrialLog in
Avatar of Moti Mashiah
Moti MashiahFlag for Canada

asked on

Asp.net mvc foreach

Hi Guys,
I'm query list of item to my view ..for example:
User generated image
After I query the list I would like to make change in the itemlookupcode column - let's say to 45 like you see in the screenshot and then to save.

The issue:
when I change the column in the first row it works and send me the correct value I type in the textbox, but when I try to do it for the second row or third etc...it will not pass the change he past just the text that was there before.

How can I fix it and send the veritable of the exact row I need for now all the request buttons in each row points to the first row.

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Moti Mashiah

ASKER

Thank you very much that solved my problem.
I just need to pass the rest of the fields to ajax.

Thanks,
Glad it worked.  If you need to hone in the solution, just post another question with what you are using.