I have a web stream (asp.net) that has a drop-down list and a checkbox.
When a checkmark is checked, I need to disable some fields in this form. When a certain value is selected from this checkbox, I need to disable other fields.
I check the box:
<%=Html.CheckBox("IsResponseUnavailable", Model.IsResponseUnavailable)%>
And like this:
<%= Html.MyDropDownList(string.Format("Questions[{0}].Answer", i), (IEnumerable<SelectListItem>)ViewData["Periods"], Model.Questions[i].Answer)%>
Where MyDropDownList is an extension of Html.DropDownList
I heard about auto-reverse gear - but don't know how to use it - any advice would be great!
I am using ASP.NET MVC 3.
Thanks! - L
laura source share