asp.net.ph

HtmlInputCheckBox.Checked Property

System.Web.UI.HtmlControls Namespace   HtmlInputCheckBox Class


Sets or retrieves a value indicating whether the HtmlInputCheckBox is checked.

Syntax


Inline <input type=checkbox checked ... >
Script HtmlInputCheckBox.Checked [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true if the HtmlInputCheckBox is currently selected; otherwise, false. Default value is false.

Remarks

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.

Example

The following shows how to set and retrieve the Checked property of an HtmlInputCheckBox control.

 Show me 

See Also

HtmlInputCheckBox Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph