I have an empty table and I want to check if a column is empty and I use this code:
comm.CommandText = "SELECT name1 FROM table1";
comm.ExecuteNonQuery();
datareader1 = comm.ExecuteReader();
if (datareader1.Read())
{
if (datareader1.GetValue(0).ToString() == DBNull.Value)
textBox1.Text = "ABC";
}
But it doesn't enter in the first 'if' at all !!! Way?
Please help!!!!
...
Go to the complete details ...