Chapter 14: Creating a Web-Based Calendar


Overview

What appointments do you have today? You probably already have a day planner, a digital assistant, a calendar in Microsoft Outlook, or some combination of those time managers. In this chapter, I ll add to your arsenal of scheduling tools by showing you how to create a simple Web-based calendar where you can enter appointments and then view them day by day.

By learning how to create a Web-based calendar, you ll get a good introduction to the Microsoft ASP.NET Calendar control. I ll show you how to use the Calendar control for a couple of different purposes. First you ll use the Calendar control as a simple, intuitive date picker. You can find an example of this use of a calendar control on the MSN Citysearch.com site (http://local.msn.com/t3/entertainment/), where you can click a calendar to find cultural events for a specific day. Second I ll show you how to program the ASP.NET Calendar control so that it displays days on which you have appointments. If you use Outlook, you ll recognize this use of the Calendar control; in the Outlook calendar, days on which you have appointments appear in boldface.

In this chapter, you ll create two pages. The first page will allow you to enter appointments. The second page, as you can guess, will allow you to view your appointments. The calendar information itself will be stored in your database. (To keep things simple, the calendar application in this chapter will not have the ability to track appointments for different users everyone who uses the application will share the same pages and the same calendar database.) The first task will be to create the database table to hold the calendar data.




Microsoft ASP. NET Web Matrix Starter Kit
Microsoft ASP.NET Web Matrix Starter Kit (Bpg-Other)
ISBN: 0735618569
EAN: 2147483647
Year: 2003
Pages: 169
Authors: Mike Pope

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net