How do you convert input value to title case in EditorFor? I know doing
@Html.EditorFor(model, new { htmlAttributes = new { @style = "text-transform:uppercase" } })
will only change the client side so I need to change it manually on server side.
I tried adding the class text-capitalize but seems no luck. 
Thanks in advance.
                        
Here are explanations to use either title case or sentence case for viewmodel's string properties which bound to
EditorFor:1) If you want to use title case, you can set it inside getter part with
ToTitleCasemethod (changeCurrentCulturetoInvariantCulturedepending on your requirements), as in example below:View usage
2) If you want sentence case instead, use regular expression to find out sequences (referenced from this similar issue) and do similar way to getter part like above:
View usage
Live example: .NET Fiddle Demo