Posts by Marcel Sousa • 26 points
1 post
-
1
votes3
answers1947
viewsA: Dropdownlist validation in ASP.Net MVC
Try @required in class attributes. @Html.DropDownList("CidadeID", null, htmlAttributes: new { @required = "required", @class = "form-control" })