Reputation: 12302
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: 1387
Reputation: 44042
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