TRIM, UPPERCASE and First word uppercase
TRIM, UPPERCASE and First word uppercase
truck7561
Posts: 3Questions: 2Answers: 0
Using .NET framework C#. I have the validators working on my forms. But, I also want to trim each field and I want to uppercase some fields and only uppercase the first letter of some fields. Any good tips (code) on how to do this?
Answers
I think C# has native functions for those things.
A custom formatter would be the way to do this. Don't try to change the format in the validator, use the formatter for that, along with whatever C# transformation methods you need -
String.Trim()
etc.Allan