Monday, January 18, 2010

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

Without using ';DAYRANDER EVENT'; of calander control











protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)


{


if (e.Day.Date.CompareTo(DateTime.Now.Date) %26lt; 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....HOW TO DISABLE ALL THE DATES BEFOR TODAY'S DATE IN CALANEDER CONTROL...IN ASP.NET...?
';False'; spelling mistake ,it will be ';false';

No comments:

Post a Comment