ASP.NET MVC 2 model properties binding order
Posted
by bniwredyc
on Stack Overflow
See other posts from Stack Overflow
or by bniwredyc
Published on 2010-03-15T12:36:03Z
Indexed on
2010/03/15
12:39 UTC
Read the original article
Hit count: 168
asp.net-mvc
|asp.net-mvc-2
Is there a way to change order in which the default binder binds property values of model?
For example I have model class A
:
class A
{
public string A1 {get; set;}
public string A2 {get; set;}
}
and action DoSomethig
:
public ActionResult DoSomething(A model)
{
...
}
I want that A2 property has been bound before the A1 property. Is it possible? Or I need to write custom binder?
© Stack Overflow or respective owner