Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding PK To A Control
Message
 
À
02/03/2009 23:01:32
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01385135
Message ID:
01385277
Vues:
42
Yes, the source is included. I added an AppointmentId property to the Appointment class.



>I haven't looked at it in-depth, but can you inherit from the Appointment class and add your own property?
>
>Also, does it include source code? If so, you may be able to make their Appointment class a partial class, and then add your own partial class to complement it. I have no idea if that would work though... just an idea.
>
>>I'm looking at the calendar control here http://www.codeproject.com/KB/selection/Calendardayview.aspx
>>
>>I like the control, except the Appointment class exposes a very limited set of properties. There is a Start datetime, End datetime, and a Title. The problem is that I don't see how to associate a PK from a table to a specific appointment in the calendar.
>>
>>It's conceivable that more than one appointment could have the same starting and ending datetime, and the same subject. Or what's more likely is that in a multiuser environment someone could change the dates or title, so I could not reliably depend on any of this data when trying retrieve an appointment.
>>
>>When I load the appointments I also return the PK of each appointment, but I don't see any way to associate the PK to it's appointment class. The Tag property is not exposed. Is there any way to add a property at runtime, like as with VFP's AddProperty?
>>
>>Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform