SyntaxFix
Write A Post
Hire A Developer
Questions
@{int i = 0;} @foreach(var myItem in Model.Members) { <span>@i</span> @{i++; } }
// Use @{i++ to increment value}