Hi jeanhl,
Appointments are saved in the database with the UserName from the MembershipUser. This makes it easy to get appointments for a specific user. Here's what I would do:
1. Create a My Profile page that requires users to log on.
2. On this page, display all appointments for the user (in a GridView for example), by writing code similar to GetAppointmentList in the AppointmentManager class. Instead of a date, pass in the user name.
3. Disable the delete button for past appointments.
4. Write code that reacts to the Delete button and deletes the requested appointment for the user. As an additional layer of security, you should pass the UserName to the database as well so users can only delete their own appointments.
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
Beginning ASP.NET 3.5 : in C# and VB,
ASP.NET 2.0 Instant Results and
Dreamweaver MX 2004
Want to be my colleague? Then check out this post.