Example of RadioButton in ASP.NET Core 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 For extensions tag helper support in RadioButton. You can bind model property to the RadioButton by adding an attribute `ejs-for` and assign model property to it. 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 .

Transform your ASP.NET Core web apps today with Syncfusion ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE