I know I can place this code in the markup to create a repeater for a C# markup but can I do something similar in VB.net
<% foreach (var c in Contacts) { %>
<div class="footer">
<% if (c.Custody != null) { %>
<label>Custody:</label> <%= c.Custody.Name %><br />
<% } %>
</div>
<% } %>
This should do the trick! Happy coding!