I\'m curious if binding models directly as parameters in the action method is considered as bad idea ?
I\'d like to create a custom model binder. Let\'s say there\'re 20 properties. I need manualy bind only five of them. I\'d like to bind the other 15 properties automatic like the default binder does.
I have a form that posts a bunch of hidden variables, some with the same name. Here\'s the post body:
I have a custom modelbinder built to handle my accountRequest class. This class consists of some boolean values and a UserViewModel.
I know it could be bad to use domain models as view models. If my domain model has a property named IsAdmin and I have a Create controller action to create users, someone could alter my form and get i
I have an Asp.net MVC app that currently works well using the default model binder and urls with complex parameters like this:
I need to filter out some values before they are bound from POST data in MVC2. Unfortunately i can\'t change the client side code which is sometimes passing \"N/A\" for a form value that is to be mapp
In ASP.NET MVC 3 RC2, the default ModelBinder will automatically parse the request body if the Content-Type is set to application/json. Problem is, this leaves the Request.InputStream at the end of th
In ASP.NET MVC 2, you can use this URL and this controller method: GET http://server/controller/get?id=5
TL;DR: How can I consolidate logic shared by two custom ModelBinder implementations into a single base class, when both implementations rely on Autofac to inject a (common) dependency into them?