ASP.NET Checked Attribute
Definition and Usage
The Checked attribute specifies whether the CheckBox control is selected.
CheckBox is not selected by default.
Syntax
<asp:CheckBox Checked="TRUE|FALSE" runat="server" />
Example
The following example will validate when the CheckBox is selected:
<form runat="server"> <asp:CheckBox id="check1" runat="server"> Checked="TRUE" /> </form>
Example
- Set the default value of CheckBox control to "checked"