Disabling dates in client side Calender control

Disabling dates in client side Calender control

am 09.01.2008 08:58:38 von ivsvarma

I have the requirement with regards to Calender control, where in
certain Dates needs to be disabled on the control load itself.

Thanks! in advance.

Re: Disabling dates in client side Calender control

am 09.01.2008 09:18:47 von mark

wrote in message
news:5e56b77a-43d0-49b5-9635-1791093c3c7c@v67g2000hse.google groups.com...

>I have the requirement with regards to Calender control, where in
> certain Dates needs to be disabled on the control load itself.

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