I have created a new ActionFilter for an ASP.NET MVC application that I'm creating. I have an action which accepts an Http Post and the argument of the action method accepts an object, for which I have created and registered a custom model binder.
I noticed that inside the IActionFilter.OnActionExecuting the value for filterContext.Cont...
I apologise for the amount of code I have included. I've tried to keep it to a minimum.
I'm trying to have a Custom Validator Attribute on my model as well as a Custom Model binder. The Attribute and the Binder work great seperately but if I have both, then the Validation Attribute no longer works.
Here is my code snipped for readabi...
I have written a custom model binder for List in my MVC project however I am now stuck in how to get this binder to validate against my DataAnnotations validation attributes.
I have found some posts on the interwebs that talk about similar scenarios, but I haven't been able to find anything that works for my particular scenario.
Model...
Hi there,
I'm using ASP.NET MVC 2 and want to figure out how to re-trigger the validation on my model after it has been populated using a custom binder.
So, I start with a couple of EF classes which are associated, Booking and Traveller (each booking can have one or more travellers)
Here's the buddy class I'm using to place balidation...