Thursday 27 April 2017

Difference between RadioButton control and CheckBox control in Asp.Net

In this post, I will explain the Difference Between RadioButton and CheckBox control.

RadioButton and CheckBox control is associated with Group property. By using group property, we can define a group of Checkboxes and RadioButton’s. There is a fundamental difference between them.

In a CheckBox group, a user can select more than one option. Each CheckBox operates individually, so a user can toggle each response "on" and "off".

RadioButton, however, operates as a group and provide mutually exclusive selection values. A user can select only one option in a radio button group. In other words, clicking a non-selected radio button will deselect whatever another button was previously selected in the RadioButton group.

If you want to enable your user to select more than one option in a group of choices, use CheckBox'es. If you want to restrict your user to one option, use RadioButton's.

0 comments:

Post a Comment

Please do not enter any spam link in the message box.