| ||||||||||||
CheckBox.Checked PropertySystem.Web.UI.WebControls Namespace CheckBox Class Sets or retrieves a value indicating whether the CheckBox control is checked. Syntax
Property ValueThis property accepts or returns only a boolean value: true to indicate a checked state; otherwise false. Default value is false. RemarksUse the Checked property to declaratively set the initial state of a CheckBox control. This property can also be used to programmatically specify or determine whether the CheckBox control is checked. In certain cases, as when checkboxes or radiobuttons ( which inherit this property ) are used within templated controls, the Checked property is usually obtained dynamically from a data source. <asp:checkbox runat = "server" checked=<%# ( ( IDataRecord ) Container.DataItem ) [ "Stopped" ] %> /> ExampleThe following examples demonstrate using the Checked property at design time and at run time.
The following example demonstrates how to dynamically bind the Checked property of CheckBox controls defined within a template.
See Also |
| |||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme