471,319 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

datareader record null

Hi im new to csharp
I want to check the value of the field is null or not
this is my code

if ( dr["timeout"] =????

which is the function orthe method through which i can do this please
help

Dec 14 '05 #1
3 3866
Check out DbNull

Dec 14 '05 #2
Hi,

if ( dr["timeout"] == DBNull.Value )

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"jack" <ga**********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi im new to csharp
I want to check the value of the field is null or not
this is my code

if ( dr["timeout"] =????

which is the function orthe method through which i can do this please
help

Dec 14 '05 #3
Thanks for this buddy..

Dec 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Arsalan | last post: by
4 posts views Thread by Shapper | last post: by
3 posts views Thread by William | last post: by
1 post views Thread by =?UTF-8?B?QXJuZSBWYWpow7hq?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.