ComponentOne Calendar for ASP.NET Web Forms
Quick Start / Step 2 of 3: Customizing the Calendar
In This Topic
    Step 2 of 3: Customizing the Calendar
    In This Topic

    In this topic you will set some properties of the C1Calendar control.

    1. Select View | Properties Window in the Visual Studio menu.
    2. Click the drop-down list at the top of the Properties window and select C1Calendar.
    3. Set the AllowPreview property to true.
    4. Click the dropdown arrow next to the MinDate property and set it to 7/11/2011.
    5. Click the dropdown arrow next to the MaxDate property and set it to 7/18/2011.
    6. Set the NavButtons property to Quick. The markup for the C1Calendar control will appear like the following:

      To write code in Source View

      <cc1:C1Calendar ID="C1Calendar1" runat="server" AllowPreview="True"
      MaxDate="2011-07-18" MinDate="2011-07-11" NavButtons="Quick">
      </cc1:C1Calendar>

    Now run the project to see the formatted calendar.

    See Also