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 SahooPosted Oct 4, 2018, 12:18 AM
Haris AghaPosted Oct 9, 2018, 6:24 AM
Raju AhmedPosted Oct 4, 2018, 1:51 AM