Calendrier ASP.NET TitleFormatPropriétés


Calendar 控件Contrôle Calendar

Définition et utilisation

La propriété TitleFormat est utilisée pour définir ou renvoyer la manière dont le titre du calendrier est affiché (son format).

Syntaxe

<asp:Calendar TitleFormat="mode" runat="server" />

Propriété Description
mode Spécifie comment le titre du calendrier est affiché (son format).

Valeurs possibles :

  • Month
  • MonthYear (Par défaut)



Exemple

L'exemple suivant définit le TitleFormat pour afficher le mois :

<form runat="server">
<asp:Calendar id="cal1" runat="server"
TitleFormat="Month" />
</form>

Essayez-le vous-même »

Calendar 控件Contrôle Calendar Autres extensions