Table of Contents
Calendar Properties

The properties of the Calendar class are listed below. For a complete list of Calendar class members, see the Calendar Members topic.

Properties
Name Description
AbbreviatedDayNames Specifies an array of strings containing the culture-specific abbreviated names of the days in a week, started from Sunday.
AbbreviatedMonthNames Specifies an array of strings containing the culture-specific abbreviated names of the months, started from January.
AccessKey (inherited from WebControl) 
Adapter (inherited from Control) 
AllowMultiSelect Gets or sets a boolean value to allow multiple selection on client side.
AppRelativeTemplateSourceDirectory (inherited from Control) 
Attributes (inherited from WebControl) 
AutoPostbackOnScroll Specifies if Calendar should raise postback Scroll event to server when Calendar switches current month.
AutoPostbackOnSelect Specifies if Calendar should raise postback SelectionChanged event to server when a day is selected.
BorderImages (inherited from WebControl) Provides a list of images used to create customized borders for the control.
CalendarStyle Gets or sets the style properties for the Calendar control.
ChildControlsCreated (inherited from Control) 
ClientID (inherited from Control) 
ClientIDMode (inherited from Control) 
ClientIDSeparator (inherited from Control) 
ClientSideOnChange Specifies the name of client side JavaScript function which is called when current selected date changes.
ClientSideOnError (inherited from WebControlBase) Gets or sets the name of the JavaScript function that is called when an error occurs on client side.
ClientSideOnEvalVar (inherited from WebControl) Specifies the name of client side JavaScript function which is called when a variable needs to be evaluated in a client template.
ClientSideOnLoad (inherited from WebControlBase) Gets or sets the name of the JavaScript function that is called when the control is loaded on the client side.
ClientSideOnMessage (inherited from WebControlBase) Gets or sets the name of the JavaScript function that is called when the control displays a message.
ClientSideOnScroll Specifies the name of client side JavaScript function which is called when calendar switches to another month.
ClientSideOnSelect Specifies the name of client side JavaScript function which is called when end user selects a day by clicking on the day cell in browser.
ClientSideOnUnload (inherited from WebControlBase) Gets or sets the name of the JavaScript function that is called when the control is unloaded on the client side.
Context (inherited from Control) 
Controls (inherited from Control) 
ControlSkinID (inherited from WebControl) Specifies the ID of the skin used by this control.
ControlStyle (inherited from WebControl) 
ControlStyleCreated (inherited from WebControl) 
CssBlock (inherited from WebControl) Specifies the CSS style definition used by this control.
CssFile (inherited from WebControl) Specifies the path of an external CSS file that provides CSS styles used by this control.
DataItemContainer (inherited from Control) 
DataKeysContainer (inherited from Control) 
DayCellHeight Specifies the height (in pixel) of a day cell.
DayCellSpacing Specifies the space (in pixel) between each day cell. This property is ignored if GridLineVisible property is true.
DayCellWidth Specifies the width (in pixel) of a day cell.
DayHeaderFormat Specifies which format of day name to display in day header area.
DayHeaderStyle Specifies the appearance setting for day header area.
DayHeaderVisible Use this property to specify if day header area is visible for each month.
DayHoverStyle Specifies the appearance setting of a day cell when mouse is positioned over it.
DayNames Specifies an array of strings containing the culture-specific full names of the days of the week, started from Sunday.
DayStyle Specifies the appearance settings for a day cell.
DesignMode (inherited from Control) 
DesignOptions (inherited from WebControl) Contains options used for design time preview.
DisabledDates Gets or sets a collection of dates to which DisabledDayStyle will be applied.
DisabledDayStyle Specifies the appearance setting of day cells that belong to DisabledDates.
DisableWeekendDays Gets or sets a boolean value to enable/disable weekend day cells.
Enabled (inherited from WebControl) 
EnableKeyboardNavigation (inherited from WebControl) Gets or sets a value indicating whether keyboard navigation should be enabled.
EnableOtherMonthDays Gets or sets a boolean value to enable/disable day cells that do not belong to the current month.
EnableTheming (inherited from WebControl) 
EnableViewState (inherited from Control) 
Events (inherited from Control) 
FirstDayOfWeek Specifies which day in a week should be displayed as the first day of the week.
FirstMonth FirstMonth and LastMonth define the visible date range for the calendar. The calendar does not display dates beyond the specified range.
FooterTemplate Specifies any customized HTML to be displayed in a calendar's footer area.
ForceSSL (inherited from WebControl) Gets or sets a value indicating whether the server should work as if it were always running on a secure server (https).
GridLineColor Specifies the color of grid lines that separate each day cell in a month.
GridLineFrameVisible When GridLineVisible is true, use this property to show/hide the frame of grid lines for each month.
GridLineVisible Specifies if grid lines that separate each day cell in a month is visible.
HasAttributes (inherited from WebControl) 
HasChildViewState (inherited from Control) 
ID (inherited from Control) 
IdSeparator (inherited from Control) 
ImageBaseDirectory (inherited from WebControl) Gets or sets the folder that contains images for the control.
IsChildControlStateCleared (inherited from Control) 
IsEnabled (inherited from WebControl) 
IsTrackingViewState (inherited from Control) 
IsViewStateEnabled (inherited from Control) 
LastMonth FirstMonth and LastMonth define the visible date range for the calendar. The calendar does not display dates beyond the specified range.
LoadViewStateByID (inherited from Control) 
MaxValidDate MinValidDate and MaxValidDate define the valid range for the calendar. Days that are out of this range will apply OutOfRangeDayStyle or DisabledDayStyle.
MinValidDate MinValidDate and MaxValidDate define the valid range for the calendar. Days that are out of this range will apply OutOfRangeDayStyle or DisabledDayStyle.
MonthColumns Specifies number of month columns displayed in the Calendar.
MonthGridLineColor When MonthGridLineVisible property is true, use this property to specify the color of grid line.
MonthGridLineFrameVisible When MonthGridLineVisible property is true, use this property to show/hide the frame of grid lines.
MonthGridLineVisible Use this property to show/hide the grid lines that separate month cell in a multi-month calendar.
MonthNames Specifies an array of strings containing the culture-specific names of the months, started from January.
MonthRows Specifies the number of month rows displayed in the Calendar.
MonthSelectorHtml Specifies the html to display for the month selector.
MonthSelectorImageHeight Specifies the height (in pixel) of the month selector image which is specified by MonthSelectorImageUrl.
MonthSelectorImageUrl Specifies the url of the month selector image.
MonthSelectorImageWidth Specifies the width (in pixel) of the month selector image which is specified by MonthSelectorImageUrl.
MonthSelectorStyle Specifies the appearance style of the month selector.
MonthSelectorVisible Specifies if month selector is visible. Month selector is used to select the whole month.
MonthStyle Specifies appearance style for area that displays month.
MonthTitleStyle Specifies the appearance settings for month title area. Applies to Calendar with multiple month
MonthTitleVisible When a Calendar displayes multiple months in one page, use this property to specify if month title area is visible for each month.
MultiSelectModifier Gets or sets the modifier key for selecting multiple dates in the Calendar.
NamingContainer (inherited from Control) 
OtherMonthDayStyle When OtherMonthDayVisible is true, use this property to specify the appearance for day cells that do not belong to current month.
OtherMonthDayVisible Gets or sets a boolean value to show/hide day cells that do not belong to current month.
OutOfRangeDayStyle Specifies the appearance setting for day cells which dates are either before MinValidDate or after MaxValidDate.
Parent (inherited from Control) 
RenderingCompatibility (inherited from Control) 
RightToLeft (inherited from WebControl) Gets or sets a value indicating whether the control should renders as right to left.
SelectedDate Gets or sets a date to which SelectedDayStyle will be applied.
SelectedDates Gets or sets a collection of dates to which SelectedDayStyle will be applied.
SelectedDateString Gets or sets a date in as a string rather as a DateTime.
SelectedDayStyle Specifies the appearance setting of day cells that belong to SelectedDates.
Shortcut (inherited from WebControl) Get a Shortcut object through which you can get or set the keyboard short cut for this control.
Site (inherited from Control) 
SkinID (inherited from WebControl) 
Style (inherited from WebControl) 
SupportsDisabledAttribute (inherited from WebControl) 
SwapDuration Defines the duration (in milliseconds) when calender switches one month to another month.
SwapStyle Specifies the style when calender switches one month to another month.
TabIndex (inherited from WebControl) 
TagKey (inherited from WebControl) 
TagName (inherited from WebControl) 
TemplateControl (inherited from Control) 
TemplateSourceDirectory (inherited from Control) 
TitleArrowDownStyle Specifies the style of "next" and "previous" arrows displayed on title area when mouse button is pressed down on the arrows.
TitleArrowHoverStyle Specifies the style of "next" and "previous" arrows displayed on title area when mouse positions over the arrows.
TitleArrowImageHeight Specifies the height (in pixel) for "next" and "previous" arrows displayed on title area.
TitleArrowImageWidth Specifies the width (in pixel) for "next" and "previous" arrows displayed on title area.
TitleArrowStyle Specifies the style of "next" and "previous" arrows displayed on title area.
TitleFormat Gets or sets the string to specify date format to display for the title section.
TitleLeftArrowDownImageUrl Specifies the URL string that points to the arrow image displayed on the left side of the title heading area when the mouse is pressed down.
TitleLeftArrowHoverImageUrl Specifies the URL string that points to the arrow image displayed on the left side of the title heading area when the mouse is positioned over the left arrow.
TitleLeftArrowHtml Specifies the text displayed as the left arrow on the left side of the title heading area. By default, << is used.
TitleLeftArrowImageUrl Specifies the URL string that points to the arrow image displayed on the left side of the title heading area.
TitleRangeSeparator Specifies the string used to separate the currently displaying month range for the title area.
TitleRightArrowDownImageUrl Specifies the URL string that points to the arrow image displayed on the right side of the title heading area when mouse is pressed down.
TitleRightArrowHoverImageUrl Specifies the URL string that points to the arrow image displayed on the right side of the title heading area when mouse is pressed down.
TitleRightArrowHtml Specifies the text displayed as the left arrow on the right side of the title heading area. By default, >> is used.
TitleRightArrowImageUrl Specifies the URL string that points to the arrow image displayed on the right side of the title heading area.
TitleStyle Gets or sets style properties of title area for a Calendar control.
TitleTemplate Specifies any customized HTML to be displayed in a calendar's title area.
TitleTemplateScope Specifies whether TitleTemplate is applied for the whole title area or the title text only.
TitleVisible Gets or sets whether the title section of the Calendar control is visible.
TodayHoverStyle Specifies the appearance setting of the day cell that represents today when mouse is positioned over it.
TodayStyle Specifies the appearance setting of the day cell that represents today.
ToolTip (inherited from WebControl) 
UniqueID (inherited from Control) 
ValidateRequestMode (inherited from Control) 
ViewState (inherited from Control) 
ViewStateIgnoresCase (inherited from Control) 
ViewStateMode (inherited from Control) 
Visible (inherited from Control) 
VisibleDate Gets or sets the date that specifies the first month to display in a Calendar control.
WaitMessage Gets or sets the message to be displayed while the calendar calls server side DayRender event handler.
WeekendDayHoverStyle Specifies the appearance setting of weekend day cells when mouse is positioned over it.
WeekendDayStyle Specifies the appearance setting of weekend day cells.
WeekNumberBase Specifies whether the Calendar/DatePicker should display week number based on month or year.
WeekSelectorHtml Specifies the html to display for the week selector.
WeekSelectorImageHeight Specifies the height (in pixel) for the week selector image specified by WeekSelectorImageUrl property.
WeekSelectorImageUrl Specifies the url of the week selector image.
WeekSelectorImageWidth Specifies the width (in pixel) for the week selector image specified by WeekSelectorImageUrl property.
WeekSelectorStyle Specifies the appearance setting of week selector.
WeekSelectorVisible Specifies if week selector is visible. Week selector is used to select the whole week.
See Also