SqlDataReader myreader = command.ExecuteReader();
if( myreader["column_name"] != DBNull.Value)
{
//code goes here
}
or
SqlDataReader myreader = command.ExecuteReader();
if(myreader["column_name"] != Convert.DBNull)
{
//code goes here
}
Thursday, August 20, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment