Adsence750x90

Monday, July 7, 2008

Disable all previous date in calender in Asp.Net

Disable all previous date in calender control using ASP.NET C#

CE code for Disable previous date

protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
if (e.Day.Date <= DateTime.Today.Date)
{
e.Day.IsSelectable = false;

}
}

No comments: