Wiley ASP.NET 2.0 Instant Results 978-0-471-74951-6 Benutzerhandbuch

Produktcode
978-0-471-74951-6
Seite von 36
1
The Online Diar y
and Organizer
By the end of this chapter you’ll have created an online diary, organizer, and contacts manager. So
what exactly does the online diary and organizer do? Using a calendar-based interface it allows
you to add, delete, and edit a diary entry for any day. It also allows you to create events: for exam-
ple, to keep a note of your rich Uncle Bob’s birthday — wouldn’t want to forget that, would you?
It’s not just limited to birthdays, but any event: meetings, appointments, and so on.
The system has a basic username and password logon system, so that only you and no one else
can view your own diary. This is what differentiates it from a blog. This system is a private diary
and contacts manager — a place to put all those thoughts and comments you’d rather not have the
world see. Unlike a blog, where you want the world to see it!
This whole project demonstrates the power of ASP.NET 2.0 and how easy it makes creating pro-
jects like this. Gone are the days of hundreds of lines of code to do security logons, create new
users, and so on. This chapter employs the new security components of ASP.NET 2.0 to show just
how easy it is to create fun, exciting, and useful projects.
The first section takes you through using the diary and its main screens. Then, the “Design of the
Online Diary” section walks you through an overview of the system’s design. After that you get
into the nuts and bolts of the system and how it all hangs together. In the final section, you set up
the diary.
Using the Online Diar y
Each user has his or her own online diary; to access it requires logging on. Enter username 
user5
with the password 
123!abc
to log in as a test user. The log on screen is shown in Figure 1-1.
Although the screenshot may suggest lots of controls and lots of code to make the security func-
tion, in fact with the new security controls in ASP.NET 2.0 it’s very easy and not much work at all.
If you have not registered, a link will take you to the Sign Up page, depicted in Figure 1-2.
04_749516 ch01.qxp  2/10/06  9:11 PM  Page 1
COPYRIGHTED MATERIAL