HI Can anyone help me, i only want to enable one week in ajax calendar extender , it was simple in asp calendar control, how to do it in ajax calendar extender.
like i only want to enable sundays in calendar
protected void calendarDayRender(object sender, DayRenderEventArgs eargs) { if (eargs.Day.Date.DayOfWeek == DayOfWeek.Sunday) { eargs.Day.IsSelectable = true; eargs.Cell.BackColor = System.Drawing.Color.Green; } else { eargs.Day.IsSelectable = false; } } <asp:Calendar ID="Calendar1" runat="server" ondayrender="calendarDayRender" ></asp:Calendar> if you check the above code. We can have this with asp:Calendar control, but i must use calendar extender so is there any way to do like this.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.