I want to set class name to img tags and the name should be string + variable from my view, (Edit + variable).
@{int rows = 1;}
@foreach (var file in Model)
{
<img class='"Edit"+@rows' src="~/Content/images/edit.png" />
FileIconRow++;
}
So the class names should be Edit1, Edit2, Edit3 etc for every model it loops through.
Is this even possible? I'm not getting it to work, am i doing something wrong?