Top "Model-binding" questions

Model Binding is a feature of ASP.

Passing UTC DateTime to Web API HttpGet Method results in local time

I'm trying to pass a UTC date as a query string parameter to a Web API method. The URL looks …

json datetime asp.net-web-api model-binding
ASP.NET MVC 5 Model-Binding Edit View

I cannot come up with a solution to a problem that's best described verbally and with a little code. I …

asp.net-mvc model-binding asp.net-mvc-5 scaffold
How do I retrieve body values from an HTTP POST request in an ASP.NET Web API ValueProvider?

I want to send a HTTP POST request with the body containing information that makes up a simple blog post, …

c# asp.net asp.net-web-api model-binding value-provider
.Net Core Model Binding JSON Post To Web API

Just started a new project using .NET Core. Added my Web API controller and related method. Using Postman I created …

c# asp.net-core asp.net-web-api2 model-binding asp.net-core-webapi
Bind query parameters to a model in ASP.NET Core

I am trying to use model binding from query parameters to an object for searching. My search object is [DataContract] …

c# asp.net asp.net-mvc asp.net-core model-binding
Binding an string array to a DropDownList in MVC Razor

Do you know how easily I can bind the contents of a string array to a DropDownList in view for …

asp.net-mvc-3 razor model-binding html.dropdownlistfor
How do I use the [Bind(Include="")] attribute on complex nested objects?

I'm creating an inventory of locks, each lock has a serial number (Title), an associated school (SchoolCode), and 5 associated Combinations (…

asp.net asp.net-mvc asp.net-mvc-3 model-binding
ASP.NET MVC: How to 'model bind' a non html-helper element

Could you tell me a way(s) that I can bind a model property to a html-element, created without using …

jquery asp.net-mvc entity-framework razor model-binding
Model Binding to Enums in ASP.NET MVC 3

I have a method in my controller that accepts an object as an argument and returns a JsonResult. One of …

c# asp.net-mvc asp.net-mvc-3 enums model-binding
Polymorphic model binding

This question has been asked before in earlier versions of MVC. There is also this blog entry about a way …

asp.net-mvc asp.net-mvc-3 polymorphism model-binding