views:

35

answers:

0

I would like the MvcContrib select control to be highlighted in red, but currently I can only show the error text.

I currently populate security questions in the view:

<%=  this.Select(Html.NameFor(x => x.Question1).ToHtmlString())
            .Options(Model.AllSecurityQuestions, x => x.Id, x => x.Question)
            .Selected(Model.Question1.Id)
            .FirstOption("== Select Question ==") %>
<%: Html.ValidationMessageFor(x => x.Question1)%>

And when I when I want to create a validation error in the controller

ModelState.AddModelError("Question1", "Can not pick question");

The error message shows up, but I would to have the drop down box highlight as well.

Also this project uses sharparchitecture.net....