Example of Checkbox in ASP.NET MVC 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 strongly typed support in CheckBox. You can bind model property to the CheckBox by using Lambda Expression. 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 opens in a new tab .

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