Calender.StartDate = DateTime.Now; //dissabling past dates
// Calendar1.StartDate = DateTime.Now.AddMonths(1); // Start Calneder after one month from Present Date
//Calendar1.EndDate = DateTime.Now; // dissabling Future Dates
/* Calendar1.StartDate = DateTime.Now;
Calendar1.EndDate = DateTime.Now;*/
but when I write in my .net editor the start date property not shown
give me solustion.
Actually I want calender which show only current and future date not shown past date how can I do that ? I doing coding in visual studio 2008.
I am using web base application and I use calender extender in my web application
Loading

Sunny SharmaPosted Jun 25, 2013, 2:29 AM
what Calender control you're using? I suggest you to use jQueryUI datepicker, it's quite beautiful.
Use the sample below to implement jQueryUI.
--------------------------------------------
$(function() {
$( "#datepicker" ).datepicker({minDate:0});
});
Date:
-----------------------------------------
minDate parameter when set to 0 will default your datepicker to have Start Date today onwards. Previous dates will be disabled.
mark it as answer if it helps!
Cheers!
Sanjeeb LenkaPosted Jun 25, 2013, 2:24 AM
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
TableCell tc = e.Cell;
CalendarDay d = e.Day;
if (d.Date < DateTime.Now)
{
tc.Controls.Clear();
tc.BackColor = Color.LightGray;
}
}
or you can follow this link
http://forums.asp.net/t/501633.aspx/1
Jignesh TrivediPosted Jun 25, 2013, 2:14 AM
hi,
Are you using which calender control?
you application is window base or web base?