I cretated a new class CustomAppointment that inherits Appointment class.
public class CustomAppointment : Appointment
public string LabelLeft;
public string LabelRight;
and i want to show the appointments like this
| labelleft | labelright |
so when i tryed to show my CustomAppointment List "Appointments" by setting the
AppointmentTemplate by ID :
<%#Appointments.Where(t=>t.ID == Container.Appointment.ID).FirstOrDefault().LabelLeft%>
<%#Appointments.Where(t=>t.ID == Container.Appointment.ID).FirstOrDefault().LabelRight%>
i found that Container.Appointment.ID is empty while t.ID contains the value that i set it in !!
Any help Please !