1
I have the following Dropdownlist:
@Html.DropDownList("HorasPendenciaID", null, new { @class = "dropdown-custom" })
When seventh '0' in his value it is empty. I would like to validate whether Dropdown is set to zero or not and display a message forcing the user to select some value. What I must do?
HorasPendenciaID
is a property of your Model?– Leonel Sanches da Silva
Yes, it’s a whole attribute
– Raphael Prado de Oliveira