Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

.net mvc foreach index

@(int i = 0;)
@foreach (var item in myList)
{
  @(i++;)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mvc #foreach #index
ADD COMMENT
Topic
Name
8+5 =