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
Janis Peksa
NA
152
50.7k
Check if Dataset is Null?
Jul 8 2011 4:33 AM
I have simple code, like this: http://paste.php.lv/9aad9c370b9104e5e42908c8db0f1356?lang=csharp
I have problem if I enter SELECT id2 FROM table and column id2 doesn't not exist it's shows me error:
http://uploadpic.org/storage/2011/KyrNTJB1zK8blk8WV17VwbLlt.png
So I tried many ways but nothing helps:
1) if (ds != null)
2) if ((ds != null) && (ds.Tables[0].Rows.Count != 0))
I searched it all around google so no help there.
Help me please.
Reply
Answers (
2
)
Help with String
Show Alertbox