PC Review


Reply
Thread Tools Rate Thread

Disabling dates in client side Calender control

 
 
ivsvarma@gmail.com
Guest
Posts: n/a
 
      9th Jan 2008
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.
 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      9th Jan 2008
<(E-Mail Removed)> wrote in message
news:5e56b77a-43d0-49b5-9635-(E-Mail Removed)...

>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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server side control that maintains viewstate for client-side javascript variables? Keithb Microsoft ASP .NET 1 26th Feb 2007 06:19 PM
Entering dates via ActiveX Calender control shriil Microsoft Access 0 22nd Dec 2006 05:21 AM
Problem in adding template of server side control using client side scripts Lau Lei Cheong Microsoft ASP .NET 1 13th Oct 2004 11:41 AM
Reading Select control from server side which was modified on the client side Azmarae Microsoft ASP .NET 2 14th Mar 2004 04:07 PM
Adding custom client-side onClick handler with client-side validator controls Zoe Hart Microsoft ASP .NET 1 8th Jan 2004 10:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:10 AM.