When I click the submit button on my form, I get a null reference exception error during the reload following the submit event, that is generated by my dropdownlist. The data loads fine during initial load. It is my understanding that the data is maintained by convention and should be retained. I also looked at the modelstate and the error for the required field was raised and the error message exists inside the ModelState object.
But, it looks like this convention is not working for this dropdown. So, this line below raises the error: @Html.DropDownListFor(m => m.Company.DeptId, Model.DeptList)
What am I doing wrong?