mvc get selected value from dropdownlist in view

Select a date Show code Edit in sandbox . The error message indicates this null value when it tries to fetch the department list. Once the view consumes the SelectList, I hand it over to a custom helper that uses the standard DropDownList helper. What's happening in your code now, is you're passing the first string argument of "ddlVendor" to Html.DropDownList, and that's telling the MVC framework to create a