I try to do this when the user enters a value and sends it, it is stored with the first letter in the headword and the rest lower case. I want to do this for model.Name in:
@Html.EditorFor(model => model.Name)
I found this neat feature that does what I want, but I can’t understand for life how to combine the two:
s = System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(s.toLower());
I would really appreciate any help, I worked on it forever and haven’t shown anything yet.
source share