D
David C
I have added some Calendar Extenders to a FormView for some of the TextBoxes
holding dates. I am getting a runtime error of "Specified cast is not valid
and it is highlighting the CalendarExtender control. Below is the control
and the extender control. I was wondering if this error is due to the fact
that the date column OnHoldDate) I am binding to is Null? If so, what is a
workaround? Thanks.
David
<asp:TextBox ID="txtRaceID" runat="server" Text='<%# Bind("RaceID") %>'
CssClass="Hide"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender3" runat="server"
TargetControlID="txtOnHoldDate"
SelectedDate='<%# Bind("OnHoldDate") %>'>
</cc1:CalendarExtender>
holding dates. I am getting a runtime error of "Specified cast is not valid
and it is highlighting the CalendarExtender control. Below is the control
and the extender control. I was wondering if this error is due to the fact
that the date column OnHoldDate) I am binding to is Null? If so, what is a
workaround? Thanks.
David
<asp:TextBox ID="txtRaceID" runat="server" Text='<%# Bind("RaceID") %>'
CssClass="Hide"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender3" runat="server"
TargetControlID="txtOnHoldDate"
SelectedDate='<%# Bind("OnHoldDate") %>'>
</cc1:CalendarExtender>