public
anonymous / gist:601732
Created

  • Download Gist
gistfile1.cs
C#
1 2 3 4 5 6 7 8
<% if (myCollection.Count > 0)
{ %>
<%= Html.ActionLink(myCollection.Count.ToString(), "ItemDetails") %>
<% }
else
{ %>
<%= Html.DisplayFor(x => myCollection.Count()) %>
<% } %>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.