asp.net mvc - Good approach for conditionally setting CSS class mvc -
asp.net mvc - Good approach for conditionally setting CSS class mvc -
i know can utilize htmlhelpers access info repository , homecoming appropriate class.
<a class="<%= html.getonoffstate(); %>"... but other approaches there?
write entire actionlink helper instead of next tag soup:
<a class="<%= html.getonoffstate(); %>".. you use:
<%= html.toggableactionlink("foo", "bar") %> asp.net-mvc asp.net-mvc-3
Comments
Post a Comment