all groups > asp.net > january 2008 >
You're in the

asp.net

group:

Disabling dates in client side Calender control


Disabling dates in client side Calender control ivsvarma@gmail.com
1/8/2008 11:58:38 PM
asp.net:
I have the requirement with regards to Calender control, where in
certain Dates needs to be disabled on the control load itself.

Re: Disabling dates in client side Calender control Mark Rae [MVP]
1/9/2008 8:18:47 AM
[quoted text, click to view]

protected void MyCalendar_DayRender(object source, DayRenderEventArgs e)
{
if (e.Day.Date.Day == 18)
{
e.Cell.Controls.Clear();
e.Cell.Text = e.Day.DayNumberText;
}
}


--
Mark Rae
ASP.NET MVP
http://www.markrae.net
AddThis Social Bookmark Button