Conversion from type 'DBNull' to type 'Boolean' is not valid.
Hi,
This is my second time trying to post this to this site so I appologize if its a repeat as the the first one didn't appear to go through.
I'm new to asp.net and am getting the error posted below. I have a formview and it contains fields OT and PT, which are set in the DB as allowing nulls. From what I've found googling this error, I will need codebehind but do not know what to write or what event to post in under.
Any help would be greatly apprecited.
Thanks,
Leesha
__________________________________________________ ____________
Conversion from type 'DBNull' to type 'Boolean' is not valid.
Source Error:
Line 402: <asp:Label ID="GradeLabel" runat="server" Text='<%# Bind("Grade") %>'></asp:Label><br />
Line 403: OT:
Line 404: <asp:CheckBox ID="OTCheckBox" runat="server" Checked='<%# Bind("OT") %>' Enabled="false" /><br />
Line 405: PT:
Line 406: <asp:CheckBox ID="PTCheckBox" runat="server" Checked='<%# Bind("PT") %>' Enabled="false" /><br />
|