
定义和用法
Text 属性用于设置或返回 CheckBox 控件的文本。
语法
<asp:CheckBox Text="
string" runat="server"
/>
属性 | 描述 |
---|---|
string | 字符串值,规定 CheckBox 控件的文本。 |
实例
下面的实例在 CheckBox 控件上设置了文本:
<form runat="server"> <asp:CheckBox id="check1" runat="server" Text="Make it so" /> </form>
