NET and MVC, I'm trying to work on a beginner project and I'm kinda of stuck.
I have data model that contains multiple picture paths in it and I'm wondering how could I change which the picture I want to display in my view on button click. Example: show picture 1, click a HTML button, and change to show picture 2.
This is what I got so far? How am I supposed to change the picID variable? Could someone explain please?
<tr>
<td><button type="button">Click this to change the picID variable</button></td>
<td>@Html.DisplayFor(model => model.Picture.ElementAt(picID).picturePath)</td>
</tr>