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
vipin saini
NA
88
0
Grid View Problems date time problem
Aug 4 2010 2:01 AM
d =
DateTime
.Now.ToString(
"dd/mm/yyyy"
);
cmdd1 =
new
SqlCommand
(
" "
, conn);
cmdd1.CommandText =
"select * from today where '"
+
"@date"
+
"' between fdate and tdate order by id desc "
;
cmdd1.Parameters.AddWithValue(
"@date"
,
Convert
.ToDateTime(d));
SqlDataAdapter
adapter1 =
new
SqlDataAdapter
(cmdd1);
// Fill the DataSet.
DataSet
ds1 =
new
DataSet
();
adapter1.Fill(ds1,
"today"
);
// Perform the binding.
GridView1.DataSource = ds1;
GridView1.DataBind();
in which fdate and tdate in datetime database plz it is not working
Reply
Answers (
1
)
Dynamic TemplateField
Report Design