ASP.NET Caption Property
Definition and Usage
The Caption property is used to set or return the text displayed as the calendar title.
Syntax
<asp:Calendar Caption="text" runat="server" />
Property | Description |
---|---|
text | Text displayed as the title calendar. |
Example
The following example sets the Caption property of the calendar:
<form runat="server"> <asp:Calendar id="cal1" runat="server" Caption="This is a Caption text" /> </form>
Example
- Set the Caption Property of the Calendar Control