<%@ Page Language="C#" MasterPageFile="~/Demo.master" AutoEventWireup="true" CodeFile="ShowHours.aspx.cs" Inherits="ShowHours" Title="DayPilot Demo | Hour names (on/off)" Culture="en-US" %>
<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem Value="False">Hide hours</asp:ListItem>
<asp:ListItem Value="True">Show hours</asp:ListItem>
</asp:DropDownList><br />
<br />
<daypilot:daypilotcalendar id="DayPilotCalendar1" runat="server" DataEndField="end" DataStartField="start" DataTextField="name" DataValueField="id" Width="100%" ShowHours="false"></daypilot:daypilotcalendar>
</asp:Content>