Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Razor while loop

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