TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dealy
NA
213
0
Checkbox null values
Aug 17 2016 6:32 AM
Hello,
I have the following code that works if the values are true/false. If I have a null value I get an exception.
<ItemTemplate>
<asp:CheckBox ID=
"cbApproved"
Checked=
'<%# Convert.ToBoolean(Eval(ValApproved")) %>'
runat="server"/>
</ItemTemplate>
Any ideas how to fix that?
Thank you in advance.
Reply
Answers (
6
)
How to Search a value in two-dimensional list
How to Convert Numeric to data type varchar