System.Web.UI.WebControls.CheckBoxField.Text Property

Gets or sets the caption to display next to each check box in a System.Web.UI.WebControls.CheckBoxField object.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.Localizable(true)]
public virtual string Text { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The CheckBoxField.Text property is used to display a caption next to each check box in a System.Web.UI.WebControls.CheckBoxField object. If the CheckBoxField.Text property is set to an empty string, no caption is displayed.

Note:

All check boxes in the System.Web.UI.WebControls.CheckBoxField object share the same caption.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see System.ComponentModel.LocalizableAttribute and ASP.NET Globalization and Localization.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0