TRIM, UPPERCASE and First word uppercase

TRIM, UPPERCASE and First word uppercase

truck7561truck7561 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

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    I think C# has native functions for those things.

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    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

Sign In or Register to comment.