ASP.NET CheckBox TextProperty


Checkbox 控件CheckBox Control

Definition and Usage

The Text property is used to set or return the text of the CheckBox control.

Syntax

<asp:CheckBox Text="string" runat="server" />
 
Property Description
string A string value that specifies the text of the CheckBox control.


Example

The following example sets the text on the CheckBox control:

<form runat="server">
<asp:CheckBox id="check1"
runat="server" Text="Make it so" />
</form>

Try it Yourself »

Checkbox 控件CheckBox Control Other Extensions