1
Answer

How can i insert events dyanamically in a calendar?

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)

0
Photo of Vinay Singh
NA 5.9k 126.2k 8y
What the error you are getting