System.Web.UI.WebControls Namespace CheckBoxField Class
.NET Framework version 2.0
Sets or retrieves the text caption to display for the checkbox controls in a CheckBoxField.
Inline |
<asp:checkboxfield text = strText ... > |
Script |
CheckBoxField.Text = strText |
strText |
String specifying the text caption for the checkbox controls in a CheckBoxField. |
The property is read/write with no default value.
Use the Text property to specify or determine the text caption to display for each checkbox in a CheckBoxField control.
NOTE: When this property is set, all checkbox controls in the column share the same text caption.
The following example demonstrates how to use the Text property to specify a custom caption for a CheckBoxField in a DetailsView control.
CheckBoxField Members