ASP.NET CheckBox TextProperty
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>
<asp:CheckBox id="check1"
runat="server" Text="Make it so" />
</form>
Try it Yourself »
CheckBox Control Other Extensions