siva nagarjuna

siva nagarjuna

  • NA
  • 26
  • 17k

How can i insert events dyanamically in a calendar?

Aug 12 2016 2:19 AM
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<DateTime>("Date");

if (e.Day.Date == dt.Date)
{


Label lbl = new Label();


lbl.Text = r.Field<string>("Event");



}
}

 

Answers (1)