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

Example of CheckBox in ASP.NET Core Button Control

Click the submit button to post the current state of the CheckBox. When submitting the unchecked CheckBox, validation error message will be shown by using Data Annotation.

DEMO
SOURCE

This sample demonstrates For extensions tag helper support in CheckBox. You can bind model property to the CheckBox by adding an attribute `ejs-for` and assign model property to it. While submitting form, the model property will be based on checked state of the CheckBox.

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