Top "Modelbinders" questions

Accept comma and dot as decimal separator

Model binding in ASP.NET MVC is great, but it follows locale settings. In my locale decimal separator is comma (…

asp.net-mvc modelbinders value-provider
Custom DateTime model binder in Asp.net MVC

I would like to write my own model binder for DateTime type. First of all I'd like to write a …

asp.net-mvc binding modelbinders custom-model-binder
ASP.NET MVC - Alternative for [Bind(Exclude = "Id")]

Is there an alternative for [Bind(Exclude = "Id")] (Related Question) ? Could I write a model binder?

c# asp.net-mvc-2 modelbinders
ASP.NET MVC - POST Action Method with Additional Parameters from URL

With ASP.net MVC is it possible to POST a form to a controller action which includes parameters not in …

c# asp.net-mvc modelbinders actionmethod
How to use Json.NET for JSON modelbinding in an MVC5 project?

I've been looking around the internet for an answer or example, but could not find one yet. I simply would …

c# asp.net json.net asp.net-mvc-5 modelbinders
ASP.Net Web Api not binding model on POST

I'm trying to POST JSON data to a Web Api method but the JSON data is not binding to the …

asp.net-mvc-4 asp.net-web-api model-binding modelbinders
ASP.NET MVC - Mixing Custom and Default Model Binding

I have a type: public class IssueForm { Order Order {get; set;} Item Item {get; set;} Range Range {get; set;} } I …

asp.net-mvc modelbinders
ASP.NET MVC posted file model binding when parameter is Model

Is there any way to get posted files (<input type="file" />) to take part in model binding in …

asp.net-mvc modelbinders defaultmodelbinder httppostedfilebase
Why Two Classes, View Model and Domain Model?

I know it could be bad to use domain models as view models. If my domain model has a property …

asp.net-mvc-3 model viewmodel modelbinders
ASP.NET MVC2 - Custom Model Binder Examples

I am trying to find some examples of building a custom model binder for a unique binding scenario I need …

asp.net-mvc asp.net-mvc-2 modelbinders custom-model-binder