ASP.NET CheckBox CheckedProperty


Checkbox 控件CheckBox Control

Definition and Usage

The Checked property specifies whether the CheckBox control is checked.

The CheckBox is unchecked by default.

Syntax

<asp:CheckBox Checked="TRUE|FALSE" runat="server" />


Example

The following example validates when the CheckBox is checked:

<form runat="server">
<asp:CheckBox id="check1" runat="server"
Checked="TRUE" />
</form>

Demo Example »

Checkbox 控件CheckBox Control Other Extensions