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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -