• 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 Radio Button in ASP.NET MVC Button Control

Click the submit button to post the value of the selected RadioButton. When submitting the female RadioButton, validation error message will be shown by using Data Annotation.

DEMO
SOURCE

Select the Gender

This sample demonstrates strongly typed support in RadioButton. You can bind model property to the RadioButton by using Lambda Expression. While submitting form, the model property will be based on value of the selected RadioButton.

More information about RadioButton can be found in this documentation section .