TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Haris Agha
NA
5
722
query to fetch data according current date in asp.net C#
Oct 4 2018 12:03 AM
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();
Reply
Answers (
3
)
What is Visual Studio 2012 Ultimate With Blend and RC?
How many times does this program run?