Programmatic Model Binding Using UpdateModel()
Posted by: Bipin Joshi.com :: Thoughts on .NET, Life, Yoga and more,
on 21 Nov 2016 |
View original | Bookmarked: 0 time(s)
ASP.NET MVC offers model binding to capture form field values entered in a view. In many cases model binding to complex types serves the purpose. When the model type to fill from the values is known at development time, you can specify a parameter of that type. However, this is not always the case. That is where programmatic model binding comes handy. Programmatic model binding allows you to perform model binding at runtime based on some condition or processing logic....