Here is the code...
and this is the error I am getting:
Compiler Error Message: CS0176: Member 'Telerik.Web.UI.RadScheduler.ExportToICalendar(Telerik.Web.UI.AppointmentCollection)' cannot be accessed with an instance reference; qualify it with a type name instead
What am i missing? How should I be accessing the appointments?
Visual Studio underlines ExportToICalendar in red and says...
C#: Cannot access a static method on an instance
The demos show this method being used and it works on the demos. Is there something I am missing?
Thanks in advance for your time and help.
protected
void
btnOutlookExport_Click(
object
sender, EventArgs e)
{
WriteCalendar(rsReservations.ExportToICalendar(rsReservations.Appointments));
}
and this is the error I am getting:
Compiler Error Message: CS0176: Member 'Telerik.Web.UI.RadScheduler.ExportToICalendar(Telerik.Web.UI.AppointmentCollection)' cannot be accessed with an instance reference; qualify it with a type name instead
What am i missing? How should I be accessing the appointments?
Visual Studio underlines ExportToICalendar in red and says...
C#: Cannot access a static method on an instance
The demos show this method being used and it works on the demos. Is there something I am missing?
Thanks in advance for your time and help.