System.Web.UI.HtmlControls Namespace HtmlInputCheckBox Class
Sets or retrieves a value indicating whether the HtmlInputCheckBox is checked.
Inline |
<input type=checkbox checked ... > |
Script |
HtmlInputCheckBox.Checked [ = true | false ] |
This property accepts or returns only a boolean value: true if the HtmlInputCheckBox is currently selected; otherwise, false. Default value is false.
Use this property to specify or determine whether the HtmlInputCheckBox control is selected, or checked. This property can also be used to programmatically set the state of the checkbox control.
Check boxes that are not selected do not send their values when the form is submitted.
The following shows how to set and retrieve the Checked property of an HtmlInputCheckBox control.
Show me
HtmlInputCheckBox Members