ComponentOne EventsCalendar for ASP.NET Web Forms
Working with EventsCalendar for ASP.NET Web Forms / Data and DataBinding / Binding Data to a C1EventsCalendar Control Tutorial
In This Topic
    Binding Data to a C1EventsCalendar Control Tutorial
    In This Topic

    This tutorial will walk you through the steps of binding a C1EventsCalendar control to the EventsCalendarNwind.mdb database, which will be used to populate the control with some sample events and calendars. You will need to configure two AccessDataSource controls; one will map to the C1EventStorage and the other will map to the C1CalendarStorage.

    Before you begin, copy the database to the App_Data folder of your project folder.

    Start by creating a new Web application or Web site application and adding the EventsCalendarNwind.mdb database to the project. Then add a C1EventsCalendar and two AccessDataSource controls to the page. To do this, follow these steps:

    1. Create a new Web application.
    2. In the Solution Explorer, right-click the App Data folder and select Add | Existing Item.
    3. In the Add Existing Item dialog box, select EventsCalendarNwind.mdb and click Add.
    4. Add a C1EventsCalendar control and two Microsoft AccessDataSource data controls to your form. Change the ID for the first AccessDataSource control to AccessDataSource_Events, and change the ID for the second AccessDataSource control to AccessDataSource_Calendars.
    See Also