Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
converting falied on boolean value
Venkata Subbareddy
9y
374
1
Reply
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.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to generate the student Report
Entity Frame work 6.0 capturing raw sql