You can do in the scope of an Action that receives the template of your submitted form
[HttpPost]
public ActionResult Edit([Bind(Exclude="Banco")]CompanyDto model)
{
// ...
}
You can discriminate the property in the scope of your model also since in this way it will be influenced throughout the
application and not just the Action being used.
[Bind(Exclude="Propriedade_1,Propriedade_2,Propriedade_3")]
public class CompanyDto
{
public int Id { get; set; }
public string Propriedade_1 { get; set; }
public string Propriedade_2 { get; set; }
public string Propriedade_3 { get; set; }
// ...
}
Can also filter a property of an example model object
public class CompanyDto
{
public int Id { get; set; }
[Exclude]
public string Propriedade_1 { get; set; }
public string Propriedade_2 { get; set; }
public string Propriedade_3 { get; set; }
// ...
}
Another way to check is to put a breakpoint in Action that receives the data and before that in the browser press F12 and check the value of the item that has the 'selected' property of your dropdown before you submit the form to Action .