authorlist display name

Oct 28, 2008 at 9:07 PM
I want to modify the AuthorList.cs to display the user's DisplayName instead of their UserName.
So I tried changing

anc.InnerHtml = user.UserName + " (" + postCount + ")";

to

anc.InnerHtml = user.DisplayName + " (" + postCount + ")";

but i get an error of : CS0117: 'System.Web.Security.MembershipUser' does not contain a definition for 'DisplayName'

What am i missing to display the user's display name rather then the user name?




anc.InnerHtml = user.UserName + " (" + postCount + ")";