ASP.NET 2.0 Instant Results
.pdf10
Appointment Booking
System
No matter what business you’re in or what organization you work for, a lot of day-to-day tasks involve appointments. Whether you run a hairdresser shop, hire out conference rooms or laptops, or you have a technical consultancy firm, you need a way to keep track of appointments that have been made. Quite often these kinds of appointments are made by phone, and then written down on sticky notes or saved in a calendar application like Microsoft Outlook or in a planning tool. Wouldn’t it be great if you could remove all the hassle these phone calls bring and allow your customers to make the appointments online?
The Appointment Booking System presented in this chapter allows you to do just that. The application — which can be installed as part of your intranet or corporate web site — enables registered end-users to check availability and make direct appointments. To minimize abuse of the system, users have to sign up for an account and confirm their e-mail address before they can access the system’s vital areas. Users from your organization have direct access to the appointments that have been made online.
The chapter has a strong focus on working with controls. You see how to use some of the less-known controls like the Wizard and the MultiView. You learn how to create reusable user controls with custom properties and methods. Finally, you see how to create instances of server controls on the fly using code in code-behind files to create output that cannot be achieved with the existing ASP.NET 2.0 server controls.
Using the Appointment Booking System
The Appointment Booking System consists of two parts: the public end-user section and the maintenance section. The public user section is where end-users can sign up for an account, check availability, and make appointments. To allow you to determine at run time what kind of appointments you want to book in the system, the system is built around a generic term called Booking Objects. A booking object is the person or object — such as a mechanic or a conference room — you can make an appointment with. Because this term doesn’t make sense to an end-user, the application