• Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Preferences
Theme Selection
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

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.