
定义和用法
Caption 属性用于设置或返回显示为日历标题的文本。
语法
<asp:Calendar Caption="
text" runat="server"
/>
属性 | 描述 |
---|---|
text | 显示为标题日历的文本。 |
实例
下面的实例设置了日历中的 Caption 属性:
<form runat="server"> <asp:Calendar id="cal1" runat="server" Caption="This is a Caption text" /> </form>
