or
ScriptManager.RegisterStartupScript(Page, GetType(), "formScript", "Sys.Application.add_load(openForm);", true);RadAjaxManager LocalManager = RadAjaxManager.GetCurrent(Page);LocalManager.ResponseScripts.Add("OpenForm();");
[WebMethod(EnableSession=true)] public IEnumerable<AppointmentData> GetAppointments(SchedulerInfo schedulerInfo) { List<AppointmentData> result = new List<AppointmentData>(); var q = from c in WebUtils.User.Merchant.Appointments where c.ServiceDateTime >= schedulerInfo.ViewStart && c.ServiceDateTime <= schedulerInfo.ViewEnd && c.CancelDate == null select c; foreach (WWS.BLL.Appointment a in q.ToList()) { AppointmentData ad = new AppointmentData(); ad.Description = a.Service.Category.Description + " - " + a.Service.Description; ad.ID = a.Id; ad.Start = a.ServiceDateTime.ToUniversalTime(); ad.End = a.ServiceDateTime.AddMinutes(a.Duration).ToUniversalTime(); ad.Subject = a.Service.Description; result.Add(ad); } return result; }Microsoft JScript runtime error: 'this._appointment.get_recurrenceRule()' is null or not an object