Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Razor foreach loop

<ul>
    @foreach (string name in names)
    {
        <li>@name</li>
    }
</ul>
Source by asp.mvc-tutorial.com #
 
PREVIOUS NEXT
Tagged: #Razor #foreach #loop
ADD COMMENT
Topic
Name
7+5 =