hi friends,
i fill the record in Label from database.
how to no records message in Label2.text
i want to if no records in database or empty, show the message in Label2.
cmd.Connection = con;
cmd.CommandText = "select max(vdate) from emp";
Label2.Text = Convert.ToString(cmd.ExecuteScalar());
if(Label2.Text=="")
Label2.Text = "No Records Found";
con.Close();
please give the correct the code.
thanks.