Is there some kind of OnModelValidating
event in MVC? Or is there another way to run some code during the model validation process?
Asked
Active
Viewed 122 times
0

just.another.programmer
- 8,579
- 8
- 51
- 90
-
2Create a class that inherits from [DefaultModelBinder](http://msdn.microsoft.com/en-us/library/system.web.mvc.defaultmodelbinder%28v=vs.118%29.aspx) and override its `OnPropertyValidating` method – Nov 26 '14 at 08:25
-
@StephenMuecke - Its great that you are so helpful, but why don't you post your answers as answers instead of comments? – NightOwl888 Nov 26 '14 at 09:01