This is my dropdownlistFor
@Html.DropDownListFor(m => m.objTicket.DepartmentId, new SelectList(Model.objTicket.Departments, "DepartmentId", "Department"), "-- Select Department--", new { id = "Deptment"}, disabled="disabled")
How to pass a value that is already stored in objTicket.DepartmentId ?
If I change remove disabled = "disabled", I get the correct value.
html5 razor asp.net-mvc-4 html.dropdownlistfor
Joseph
source share