System.Web.UI.HtmlControls Namespace
Allows programmatic access to the HTML <input type=checkbox> element on the server.
Visibility |
Name |
Value Type |
Accessibility |
public |
Checked
|
Boolean |
[ Get , Set ] |
|
Use the HtmlInputCheckBox control to allow the user to select a true or false state.
To determine whether the control is selected, use the Checked property.
The HtmlInputCheckBox control provides a ServerChange event that is raised when the Checked property changes value between posts to the server. This allows you to define a custom handler to perform some action each time the event is raised.
The HtmlInputCheckBox control does not automatically post back to the server when clicked. You must provide another control on the Web page that supports posting to the server, such as an HtmlButton control, to send the state of the control back to the server.
For examples illustrating use of this control, see the individual member types of this class. For syntax information, see HtmlInputCheckBox in ASP.NET Syntax for HTML Controls.
HtmlInputText HtmlInputButton HtmlInputRadioButton HtmlInputImage HtmlInputHidden HtmlInputFile