|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
Calendar.ShowTitle, propriété
Espace de noms : System.Web.UI.WebControls
Assembly : System.Web (dans System.Web.dll)
Remarque |
|---|
| Topic | Location |
|---|---|
| Comment : personnaliser l'apparence du contrôle serveur Web Calendar | Génération d'applications Web ASP.NET |
| Comment : personnaliser l'apparence du contrôle serveur Web Calendar | Génération d'applications Web ASP.NET dans Visual Studio |
<%@ Page Language="C#" AutoEventWireup="True" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <script runat="server" > void Check_Change(Object sender, EventArgs e) { // Show or hide the title section of the Calendar control // depending on the state of the ShowTitleCheckBox CheckBox // control. if (ShowTitleCheckBox.Checked) { Calendar1.ShowTitle = true; } else { Calendar1.ShowTitle = false; } } </script> <head runat="server"> <title> Calendar ShowTitle Example </title> </head> <body> <form id="form1" runat="server"> <h3> Calendar ShowTitle Example </h3> Select whether to show or hide the title section. <br /><br /> <asp:Calendar id="Calendar1" ShowTitle="True" runat="server"/> <br /><br /> <asp:CheckBox id="ShowTitleCheckBox" Text="Show/Hide title section" AutoPostBack="True" Checked="True" OnCheckedChanged="Check_Change" runat="server"/> </form> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
Remarque