ASP.NET MVC - How do I implement validation when using Data Repositories? (Visual Basic)?

Though it is meaningful to do validations in server side and client side manually I would say one can go with open source validation Frameworks such as XVal .

Create a partial class of your user model and add in validation for your inputs. If you already have html helpers created for validation in your view (usually done authomatically when creating a new strongly typed view) then you can just place a try catch statement in your controller to catch the errors and pass them back to the view through the modelstate.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions