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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -