ASP.NET MVC2 - Trim of whitespace on all fields in a model? -


I have data in the ASP.NET MVC2 controller / view set-up.

Unfortunately, all the data that comes from the scene, finally there is a large amount of white space.

I am trying to try TryUpdateModel after saving all form data in DB, after verification, a FormCollection is assigned to a parameter (such as Form to Vell Provider).

Is there any automated or easy way to trim all the backward white space from all the objects within the formulation?

The simplest I can think:

  formCollection.AllKeys.Select (K = form formation .set (k, form selection). Trim ()))  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -