HOW TO DISABLE ALL THE DATES BEFOR TODAY'S DATE IN CALANEDER CONTROL...IN ASP.NET...?

gaurav_151087

New member
Without using "DAYRANDER EVENT" of calander control



protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
if (e.Day.Date.CompareTo(DateTime.Now.Date) < 0)
{
e.Day.IsSelectable = False;
}
}



we use this coding for calander control to disable all the dates before today's date
but after that non of event fire....we try to solve this problem but we can't
so please provide solution to us as early as possible....
 
Back
Top