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
Chevy Mark Sunderland
NA
188
166.8k
How I check If reader has Null value ?
Mar 26 2012 11:02 AM
How I check If reader has Null value ?
Hi all, I hope your appreciated help.
I need check value of reader, and try this code, I don't have error in the asp net page but when the `reader[0].ToString();` is not null I have the incorrect output: Output --
Thanks in advance.
string top = "--";
if (!top.Equals(System.DBNull.Value))
{
top = "--";
}
else
{
top = reader[0].ToString();
}
reader.Close();
reader.Dispose();
Reply
Answers (
2
)
Remote object creation mode in .NET
Authentication in ASP.NET