how can i use javascript to disable saturday and sunday in my calendar expander.
Now I use the code to disable the previous date, as on this page.
public partial class TESTING : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { txtDelivery_CalendarExtender.StartDate = DateTime.Now; } }
ASP.NET Controls
<asp:TextBox ID="txtDelivery" runat="server"></asp:TextBox> <asp:CalendarExtender ID="txtDelivery_CalendarExtender" runat="server" PopupButtonID="ImageButton1" TargetControlID="txtDelivery" > </asp:CalendarExtender> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/Calendar.png" /> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
In addition, I would like to disable a certain range of days from today.
For example, if today is November 4, 2012, and I want to have 10 working days, then the dates from November 4 to November 14 should be disabled.
Thanks in advance.
source share