Version 2, last updated by Andrew Davey at September 01, 2009 17:46 UTC

Use LINQ to iterate over your enumerables and generate HTML.

<ul>
    <%= From customer In customers Select _
        <li>
            <%= customer %>
        </li> %>
</ul>

Notice how much nicer this is compared to "for" loops in C# aspx pages. Because we are building a tree of XML, not concatenating strings in a buffer, we can nest code inside HTML inside code with out messy things like <% } %>