HtmlInputCheckBox::Checked Property

 

Gets or sets a value indicating whether the HtmlInputCheckBox is selected.

Namespace:   System.Web.UI.HtmlControls
Assembly:  System.Web (in System.Web.dll)

public:
property bool Checked {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the HtmlInputCheckBox control is selected; otherwise, false.

Use this property to determine whether the HtmlInputCheckBox control is selected. This property can also be used to programmatically set the state of the HtmlInputCheckBox control.

The following code example demonstrates a set of responses to users selecting from a group of HtmlInputCheckBox controls.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: