Easy Tutorial
❮ Prop Webcontrol Bulletedlist Displaymode Control Htmlinputfile ❯

ASP.NET CheckBox Control



Definition and Usage

The CheckBox control is used to display a checkbox.


Properties

Property Description .NET
AutoPostBack Specifies whether to automatically post the form back to the server after the Checked property has changed. Default is false. 1.0
CausesValidation Specifies whether validation is performed when the Button control is clicked. 2.0
Checked Specifies whether the checkbox is checked. 1.0
InputAttributes The collection of attribute names and values for the Input element of the CheckBox control. 2.0
LabelAttributes The collection of attribute names and values for the Label element of the CheckBox control. 2.0
runat Specifies that the control is a server control. Must be set to "server". 1.0
Text The text label associated with the checkbox. 1.0
TextAlign The alignment of the text label associated with the checkbox. (right or left) 1.0
ValidationGroup The group of controls for which the CheckBox control causes validation when it posts back to the server. 2.0
OnCheckedChanged The name of the function to be executed when the Checked property is changed.

Web Control Standard Properties

For a complete description, visit Web Control Standard Properties.

Control Standard Properties

For a complete description, visit Control Standard Properties.


Example

Checkbox

❮ Prop Webcontrol Bulletedlist Displaymode Control Htmlinputfile ❯