con.Open();
SqlCommand cmd1 = new SqlCommand("SELECT [Description] FROM [tbl_Announcements] where Active = 1 AND ([ValidityDate] >= '" +DateTime.Today.ToLongDateString() + "')
cmd1.Connection = con;
SqlDataReader dr1 = cmd1.ExecuteReader();
while (dr1.Read())
{
k = dr1["Description"].ToString();
}
Label2.Text = k;
con.Close();

Laxmidhar SahooRank #383 · 6.6K reputationPosted Oct 3, 2018, 8:18 PM EDT
Raju AhmedRank #1,995 · 730 reputationPosted Oct 3, 2018, 9:51 PM EDT
Haris Agha5 reputationPosted Oct 9, 2018, 2:24 AM EDT