Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

can sqldatareader be null

if (myReader.HasRows) //The key Word is **.HasRows**
{
    ltlAdditional.Text = "Contains data";
}
else
{   
    ltlAdditional.Text = "Is null Or Empty";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sqldatareader #null
ADD COMMENT
Topic
Name
3+4 =