System.Web.UI.WebControls Namespace CheckBox Class
Sets or retrieves the text label associated with a CheckBox control.
Inline |
<asp:checkbox text = strText ... > |
Script |
CheckBox.Text [ = strText ] |
strText |
String specifying the text label associated with the check box. |
The property is read/write with no default value.
Use the Text property to declaratively set the text label associated with a CheckBox control. This property can also be used to programmatically specify or determine the text associated with a CheckBox.
The following examples demonstrate how to set the Text property of a CheckBox control, at design time and at run time.
CheckBox Members