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
Mark
NA
1
0
How do I test for Null values when using datareader ?
Jul 7 2009 1:46 PM
I am using a datareader to retreive a data record. As I pull each field in I am trying to test for null values like this: txtProduct.Text = iif(dr.isDBNull(1) = False, dr.getstring(1), "") Why won't this work ? I thought an IIF statement would cause it to skip the code that trys to use the datareader (dr)... ??? Is their another easy one line code fix to test for nulls ?
Reply
Answers (
0
)
loading image in picturebox
When I reopen a dataset, I can't add additional records