data annotations - Using dataannotations displayFormat to change to title case in ASP.Net MVC -
is possible use dataannotations specify fields display title case rather upper?
if want change display name of particualr field, add [displayname("displayedname")]
data annotation property in model.
for example, if model has property "firstname", may want display space , colon in "first name:" seen here:
public string firstname { get; set; } [displayname("first name:")]
Comments
Post a Comment