Example of DropDownListFor in ASP.NET Core Dropdown List Control

Dropdown List
DropDownListFor

This sample demonstrates the strongly-typed extension support in Dropdown List. The value of Dropdown List is set from code behind and it is set to Dropdown List in view page by invoking the strongly-typed DropdownListForFor helper.

Click the submit button to post the selected value in the Dropdown List. When posting the null value, validation error message will be shown below the Dropdown List.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab