---
title: "Disable some dates in Calendar control"  
description: "Disable some dates in Calendar control"  
author: "Rajesh Goswami"  
published: 2011-08-24  
updated: 2011-08-24  
canonical: https://www.mindstick.com/forum/291/disable-some-dates-in-calendar-control  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# Disable some dates in Calendar control

I want to [disable](https://www.mindstick.com/forum/12901/how-to-disable-enable-input-box-in-aspx-with-value-from-sql) some [dates](https://yourviews.mindstick.com/story/1513/7-zodiac-signs-astrology-dates-meanings-amp-compatibility) in [calendar control](https://www.mindstick.com/articles/308/monthcalendar-control-in-vb-dot-net) but can not find the suitable solution of its \
please solve it\
thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)!

## Replies

### Reply by Amit Singh

Hi rajesh

Check this line of code on DayRender event on [calendar](https://www.mindstick.com/articles/13088/how-to-choose-the-best-calendar-for-you-dynamics-crm-system) [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control)

```
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
    string date="08/24/2011";
    DateTime dt = DateTime.Parse(date);
    if (e.Day.Date == dt)
        e.Day.IsSelectable = false;
}
```


---

Original Source: https://www.mindstick.com/forum/291/disable-some-dates-in-calendar-control

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
