<asp:Calendar ID="Calendar1"
runat="server" OnDayRender="Calendar1_OnDayRender"></asp:Calendar>
protected void Calendar1_OnDayRender(object sender, DayRenderEventArgs e)
{
//if ( something == somecondition )
//{
//To Inactivate the day
e.Day.IsSelectable = false;
//To strike out the day
e.Cell.Font.Strikeout = true;
//}
}
On Sat, Jul 3, 2010 at 2:30 PM, Gourav <[email protected]> wrote:
> Hi All,
> This is Gourav. Actually i wanna a calendar in which past date
> automatically disable.Currently i am using Calendar with J query but
> it not work with Ajax...If any one have some idea or code for this
> type of calendar then please share with me..
>
> i am also use Ajax calendar extender..its work good but in this past
> date not disable i put java script that user can't select lower
> date ....but i want to disable past date..pls suggest me what can i do
> for this........I'll waiting for your reply.....
>
>
> i wanna like.....
> 1. http://air.irctc.co.in
> 2. http://www.ixigo.com/
> 3.www.Cleartrip.com <http://3.www.cleartrip.com/>
> any of these one....
>
>
> Thanks,
>
>
>
> --
> Warm Regards:-
> Gourav Vishnoi
> +91-9871157845
> “Smile: A curve that can set a lot of things straight."