Example of DropDownListFor in ASP.NET MVC Dropdown List Control
This example demonstrates the strongly-typed helper of DropDownList
. Edit the DropDownList's value and click the 'Submit' button to pass the modified value to controller.
DEMO
SOURCE
In this sample, the DropDownList is rendered with strongly-typed helper (FOR control) and bound its value from controller using model binding. The modified value is bond to controller action "DropDownListFor" when submitting a page.