Tuesday, November 27, 2012

Cleaner Conditional HTML Attributes In Razor Web Pages

http://www.mikesdotnetting.com/Article/201/Cleaner-Conditional-HTML-Attributes-In-Razor-Web-Pages

<div class="@(record.Index % 2 == 0 ? "even" : "odd")">

No comments:

Post a Comment