Prop Webcontrol Calendar Showtitle
## ASP.NET Calendar ShowTitle Property
The `ShowTitle` property is a member of the ASP.NET Web Forms `Calendar` control. It determines whether the title header section of the calendar is displayed.
---
## Definition and Usage
The `ShowTitle` property is a boolean property used to specify whether to show or hide the title bar of the `Calendar` control.
By default, this property is set to `True`, meaning the title header is visible. To hide the title header, you must set this property to `False`.
> **Important Note:** Hiding the title section (`ShowTitle="False"`) will also hide the month name, as well as the navigation links for the next and previous months.
---
## Syntax
```xml
```
### Property Values
| Value | Description |
| :--- | :--- |
| `True` | **Default.** Displays the title header (including the month name and navigation links). |
| `False` | Hides the title header entirely. |
---
## Code Example
The following example demonstrates how to set the `ShowTitle` property to `False` to hide the calendar's title header:
```xml
<%@ Page Language="C#" %>
ASP.NET Calendar ShowTitle Example
```
---
## Key Considerations
* **Navigation Impact:** When `ShowTitle` is set to `False`, users will lose the default built-in UI controls to navigate to the next or previous months. If you still need month navigation while hiding the title, you will need to implement custom navigation controls (such as external buttons) and handle the month-changing logic programmatically in the code-behind.
* **Styling the Title:** If you want to keep the title visible but change its appearance, use the `` sub-property instead of hiding it. This allows you to customize the background color, font, and alignment of the title bar.
YouTip