ASP.NET Calendar Control
Définition et utilisation
contrôle Calendar est utilisé pour afficher le calendrier dans votre navigateur.
La commande affiche un calendrier mensuel qui permet aux utilisateurs de sélectionner une date, vous pouvez passer au mois précédent ou suivant.
propriété
属性 | 描述 | .NET |
---|---|---|
Caption | 日历的标题。 | 2.0 |
CaptionAlign | 日历标题文本的对齐方式。 | 2.0 |
CellPadding | 单元格边框与内容之间的空白,以像素计。 | 1.0 |
CellSpacing | 单元格之间的空白,以像素计。 | 1.0 |
DayHeaderStyle | 显示一周中各天的名称的样式。 | 1.0 |
DayNameFormat | 显示一周中各天的名称的格式。 | 1.0 |
DayStyle | 显示日期的样式。 | 1.0 |
FirstDayOfWeek | 哪天是周的第一天。 | 1.0 |
NextMonthText | 显示下一月链接的文本。 | 1.0 |
NextPrevFormat | 下一月和上一月链接的格式。 | 1.0 |
NextPrevStyle | 显示下一月和上一月链接的样式。 | 1.0 |
OtherMonthDayStyle | 显示不在当前月中的日期的样式。 | 1.0 |
PrevMonthText | 显示上一月链接的文本。 | 1.0 |
runat | 规定该控件是服务器控件。必须设置为 "server"。 | 1.0 |
SelectedDate | 选定的日期。 | 1.0 |
SelectedDates | 选定的日期。 | 1.0 |
SelectedDayStyle | 选定日期的样式。 | 1.0 |
SelectionMode | 允许用户如何选择日期。 | 1.0 |
SelectMonthText | 显示为月份选择链接的文本。 | 1.0 |
SelectorStyle | 月份和周的选择链接的样式。 | 1.0 |
SelectWeekText | 显示为周的选择链接的文本。 | 1.0 |
ShowDayHeader | 布尔值,该值指示是否显示一周中各天的标头。 | 1.0 |
ShowGridLines | 布尔值,规定是否显示日期之间的网格线。 | 1.0 |
ShowNextPrevMonth | 布尔值,规定是否显示下一月和上一月链接。 | 1.0 |
ShowTitle | 布尔值,规定是否现实日期的标题。 | 1.0 |
TitleFormat | 日期标题的格式。 | 1.0 |
TitleStyle | 日期标题的样式。 | 1.0 |
TodayDayStyle | 当天的日期的样式。 | 1.0 |
TodaysDate | 获取或设置今天的日期的值。 | 1.0 |
UseAccessibleHeader | 规定是否使用 <th> 来代替 <td> 元素用于日的头部。 | 2.0 |
VisibleDate | 获取或设置指定要在 Calendar 控件上显示的月份的日期。 | 1.0 |
WeekendDayStyle | 周末的样式。 | 1.0 |
OnDayRender | 当每一天的单元格被创建时,所执行的函数的名称。 | |
OnSelectionChanged | 当用户选择天、周或月时 ,所执行的函数的名称。 | |
OnVisibleMonthChanged | 当用户导航到不同的月时,所执行的函数的名称。 |
Contrôle Web Propriétés standard
Pour une description complète, visitez le Web Attributs standard de contrôle .
Propriétés standard de contrôle
Pour une description complète, allez à contrôler les attributs standard .
Essayez - Exemple
calendrier
Dans ce cas, nous avons déclaré dans le fichier .aspx qui utilise le contrôle du calendrier le plus simple.
calendar 2
Dans cet exemple, nous déclarons un contrôle Calendrier dans un fichier .aspx. Dates pour afficher le nom complet du, week-end fond jaune texte rouge bleu, et la date actuelle est affichée avec un fond vert.
Calendrier 3
Dans cet exemple, nous déclarons un contrôle Calendrier dans un fichier .aspx. Dates pour afficher le nom complet, l'utilisateur peut sélectionner le jour, la semaine ou le mois, le jour / semaine / mois couleur de fond gris sélectionné pour afficher.
contrôle serveur Web