Reputation: 12294
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
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