asp.net.ph

CheckBox.Text Property

System.Web.UI.WebControls Namespace   CheckBox Class


Sets or retrieves the text label associated with a CheckBox control.

Syntax


Inline <asp:checkbox text = strText ... >
Script CheckBox.Text [ = strText ]

Property Value


strText String specifying the text label associated with the check box.

The property is read/write with no default value.

Remarks

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.

Example

The following examples demonstrate how to set the Text property of a CheckBox control, at design time and at run time.

DataGrid PagerStyle Properties Example
Run Sample | View Source
Dynamic CheckBox Sample
Run Sample | View Source
See Also

CheckBox 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