maztt
maztt

Reputation: 12294

asp.net mvc trim string

i want to trim a string in asp.net mvc . i will be doing that in controller where there is a updatemodel implemented or datannotation class or a view? where will be i doing that?

Upvotes: 0

Views: 1386

Answers (1)

codingbadger
codingbadger

Reputation: 43984

If you want trim strings that Users have entered then take a look at this answer

Although this answer only overrides the SetProperty method you could always extend the class and add a method to override the GetPropertyValue

Upvotes: 3

Related Questions