I try to set the CSS class of each row dynamically for a HTML table, I found a blog with info how to do it but it doesn't seem to work for me.
<% foreach (var item in Model){%>
<tr class= "<% Model.GetRowClass(item, "alt", "reg");%>">
Model.GetRowClass returns a string with the style name, when I run it however no style is applied.