i have a table in my database with the columns "Date,Event". i want bind the event based on the date.i try this code.i find some mistakes.please help me.
foreach (DataRow r in ds.Tables[0].Rows)
{
DateTime dt = r.Field("Date");
if (e.Day.Date == dt.Date)
{
Label lbl = new Label();
lbl.Text = r.Field("Event");
}
}
{
DateTime dt = r.Field
if (e.Day.Date == dt.Date)
{
Label lbl = new Label();
lbl.Text = r.Field
}
}
Vinay SinghPosted Aug 12, 2016, 3:30 AM