Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Razor do while loop

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