I have the following code inside my asp.net mvc view:-
@Html.DropDownListFor(model => model.FirewallCustomer.CustomerVLANSID,null, null, null)
@Html.ValidationMessageFor(model => model.FirewallCustomer.CustomerName)
<div><span class="f">VLAN IP</span> @Html.TextBox("VLANIP", new { disabled = "disabled"})</div>
but the above code will raise an error on the DropDownListFor:-
There is no ViewData item of type 'IEnumerable' that has the key 'FirewallCustomer.CustomerVLANSID'.
and for the TexBox it will show the disabled = "disabled" inside the textbox body, instead of disabling it. can anyone adivce on how to solve my dropdownlist & my textbox problems???
Thanks`