Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Razor for loop

<ul>
    @for (int i = 0; i < names.Count; i++)
    {
        <li>@names[i]</li>
    }
</ul>
Source by asp.mvc-tutorial.com #
 
PREVIOUS NEXT
Tagged: #Razor #loop
ADD COMMENT
Topic
Name
8+2 =