ASP.NET Text Property
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 | String value, 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>
Example
- Set the Text of CheckBox Control