How To Run Query if DataReader has some value??
ocmd.CommandText = s2;
odr = ocmd.ExecuteReader();
while (odr.Read())
{
int LateComeDate = (int)odr["TimeDiffDate"];
textBox1.Text = LateComeDate.ToString();
Double TimeDiff = (Double)odr["TimeDiff"];
textBox2.Text = TimeDiff.ToString();
}
odr.Close();
i want to run while code only if datareader Result Some Value..