The CheckBox control is a very common control of HTML, unlike radio buttons it can select multiple items on a webpage. The CheckBox control in ASP.NET has many properties and some of them are listed below.
Property |
Description |
AutoPostBack |
Specifies whether the form should be posted immediately after the Checked property has changed or not. The default is false. |
CausesValidation |
Specifies if a page is validated when a Button control is clicked. |
Checked |
Specifies whether the check box is checked or not. |
InputAttributes |
Attribute names and values used for the Input element for the CheckBox control. |
LabelAttributes |
Attribute names and values used for the Label element for the CheckBox control. |
runat |
Specifies that the control is a server control. Must be set to "server". |
Text |
The text next to the check box. |
TextAlign |
On which side of the check box the text should appear (right or left). |
ValidationGroup |
Group of controls for which the Checkbox control causes validation when it posts back to the server. |
OnCheckedChanged |
The name of the function to be executed when the Checked property has changed. |