System.Web.UI.WebControls Namespace
Specifies the title format for the displayed month in a Calendar control.
Member Name |
Description |
Month |
Specifies that only the month is displayed in the calendar title. For example, January. |
MonthYear |
Specifies that both the month and year are displayed in the calendar title ( default ). For example, January 2000. |
The TitleFormat enumeration represents the possible values that can be passed to the TitleFormat property of a Calendar control.
The following example demonstrates how to programmatically set the TitleFormat of a Calendar at run time, based on a selected option.
void Page_Load ( Object src, EventArgs e ) {
myCalendar.TitleFormat = ( TitleFormat ) formatList.SelectedIndex;
}
Show me
DayNameFormat NextPrevFormat