asp.net.ph

CheckBoxField.Text Property

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.

Syntax


Inline <asp:checkboxfield text = strText ... >
Script CheckBoxField.Text = strText

Property Value


strText String specifying the text caption for the checkbox controls in a CheckBoxField.

The property is read/write with no default value.

Remarks

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.

Example

The following example demonstrates how to use the Text property to specify a custom caption for a CheckBoxField in a DetailsView control.

DetailsView AutoGenerateEditButton Example
Run Sample | View Source
See Also

CheckBoxField 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