ASP.NET Calendar Control
Tutorial -- Learning is not just about technology, but also about dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
ASP.NET Tutorial
ASP.NET Tutorial ASP.NET Introduction
WP Tutorial
WebPages Introduction WebPages Razor WebPages Layout WebPages Folders WebPages Global WebPages Forms WebPages Objects WebPages Files WebPages Helpers WebPages WebGrid WebPages Charts WebPages Email WebPages PHP WebPages Publishing WebPages Examples
WP Reference Manual
WebPages Classes WebPages Security WebPages Database WebPages WebMail WebPages Helpers
ASP.NET Razor
Razor Introduction Razor Syntax Razor C# Variables Razor C# Loops Razor C# Logic Razor VB Variables Razor VB Loops Razor VB Logic
ASP.NET MVC
MVC Introduction MVC Application MVC Folders MVC Layout MVC Controllers MVC Views MVC Database MVC Models MVC Security MVC HTML Helpers MVC Publishing MVC Reference
WF Tutorial
WebForms Introduction WebForms Pages WebForms Controls WebForms Events WebForms Forms WebForms ViewState WebForms TextBox WebForms Button WebForms Data Binding WebForms ArrayList WebForms Hashtable WebForms SortedList WebForms XML Files WebForms Repeater WebForms DataList WebForms Database Connection WebForms Master Pages WebForms Navigation WebForms Examples
WF Reference Manual
WebForms HTML WebForms Controls WebForms Validation
ASP.NET HTML Server Controls ASP.NET Validation Server Controls
Deep Dive
Scripting Languages | Computer Science | Web Services | Software | Development Tools | Scripting | Web Design & Development | Programming | Web Service | Programming Languages
ASP.NET Calendar Control
Definition and Usage
The Calendar control is used to display a calendar in the browser.
This control can display a calendar for a certain month, allow the user to select dates, and also navigate to the previous or next month.
Properties
| Property | Description | .NET |
|---|---|---|
| Caption | The caption of the calendar. | 2.0 |
| CaptionAlign | The alignment of the calendar caption text. | 2.0 |
| CellPadding | The space between the cell border and its content, in pixels. | 1.0 |
| CellSpacing | The space between cells, in pixels. | 1.0 |
| DayHeaderStyle | The style for displaying the names of the days of the week. | 1.0 |
| DayNameFormat | The format for displaying the names of the days of the week. | 1.0 |
| DayStyle | The style for displaying dates. | 1.0 |
| FirstDayOfWeek | Which day is the first day of the week. | 1.0 |
| NextMonthText | The text displayed for the next month link. | 1.0 |
| NextPrevFormat | The format for the next month and previous month links. | 1.0 |
| NextPrevStyle | The style for displaying the next month and previous month links. | 1.0 |
| OtherMonthDayStyle | The style for displaying dates not in the current month. | 1.0 |
| PrevMonthText | The text displayed for the previous month link. | 1.0 |
| runat | Specifies that the control is a server control. Must be set to "server". | 1.0 |
| SelectedDate | The selected date. | 1.0 |
| SelectedDates | The selected dates. | 1.0 |
| SelectedDayStyle | The style for the selected date. | 1.0 |
| SelectionMode | How the user can select dates. | 1.0 |
| SelectMonthText | The text displayed for the month selection link. | 1.0 |
| SelectorStyle | The style for the month and week selection links. | 1.0 |
| SelectWeekText | The text displayed for the week selection link. | 1.0 |
| ShowDayHeader | A boolean value that indicates whether to display the header for the days of the week. | 1.0 |
| ShowGridLines | A boolean value that specifies whether to display grid lines between dates. | 1.0 |
| ShowNextPrevMonth | A boolean value that specifies whether to display the next month and previous month links. | 1.0 |
| ShowTitle | A boolean value that specifies whether to display the date title. | 1.0 |
| TitleFormat | The format of the date title. | 1.0 |
| TitleStyle | The style for the date title. | 1.0 |
| TodayDayStyle | The style for today's date. | 1.0 |
| TodaysDate | Gets or sets the value of today's date. | 1.0 |
| UseAccessibleHeader | Specifies whether to use <th> instead of <td> elements for day headers. | 2.0 |
YouTip