1
Answer

converting falied on boolean value

  Hi All , Iam geeting  small error let know where iam doing Wrong.
 
<asp:CheckBox ID="chkStatus" runat="server"
Checked='<%# Convert.ToBoolean(Eval("ApproveStatus")) %>'
Text='<%# Eval("ApproveStatus").ToString().Equals("True") ? " Approved " : " Not Approved " %>' />
 
 
 
ERROR
Object cannot be cast from DBNull to other types. 
Answers (1)