or
| <asp:GridView runat="server" AllowSorting="True" AutoGenerateColumns="False" Width="100%" ID="gvProductCode" meta:resourcekey="gvProductCodeResource1"> |
| <Columns> |
| <asp:CommandField ShowSelectButton="True" meta:resourcekey="CommandFieldResource1"> |
| <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle> |
| <ItemStyle HorizontalAlign="Center"></ItemStyle> |
| </asp:CommandField> |
| <asp:BoundField DataField="vchProductCode" HeaderText="Product Code" SortExpression="vchProductCode" meta:resourcekey="BoundFieldResource1"> |
| <HeaderStyle HorizontalAlign="Center"></HeaderStyle> |
| <ItemStyle HorizontalAlign="Left"></ItemStyle> |
| </asp:BoundField> |
| </Columns> |
| </asp:GridView> |
| RadScheduler1.Enabled = false; |
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
[OleDbException (0x80004005): You tried to assign the Null value to a variable that is not a Variant data type.] Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.OnDataSourceOperationComplete(Int32 count, Exception e) +39 System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +77 Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.Insert(RadScheduler owner, Appointment appointmentToInsert) +178 Telerik.Web.UI.Scheduling.AppointmentController.InsertAppointmentThroughProvider(Appointment appointment) +75 Telerik.Web.UI.Scheduling.AppointmentController.InsertAppointment(Appointment appointment) +37 Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +469 Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +108 Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +39 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 |
| Protected Function isOnHSArea2(ByVal apt As Appointment) As Boolean |
| Dim allAppointments As IList(Of Appointment) = RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End) |
| For Each currentAppointment In allAppointments |
| If currentAppointment.ID <> apt.ID Then |
| If (Convert.ToBoolean(currentAppointment.Attributes("isHS"))) Then 'isHS : off Duty |
| Return True |
| End If |
| End If |
| Next |
| Return False |
| 'Return (appointmentsCount > (AppointmentsLimit - 1)) |
| End Function |
| Protected Function isOnHSArea2(ByVal apt As Appointment) As Boolean |
| Dim allAppointments As IList(Of Appointment) = RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End) |
| For Each currentAppointment In allAppointments |
| If currentAppointment.ID <> apt.ID Then |
| If (Convert.ToBoolean(currentAppointment.Attributes("isHS"))) Then 'isHS : off Duty |
| Return True |
| End If |
| End If |
| Next |
| Return False |
| 'Return (appointmentsCount > (AppointmentsLimit - 1)) |
| End Function |