how can I use Javascript to disable Saturdays and Sundays in my Calendar Extender.
Right now, I am using the code behind to disable the previous date like in this page load.
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>
Also, I would like to disable specific range of days from today.
For example, if today is November 4, 2012, and I want to have 10 working days, then the dates between November 4 to 14 should be disabled.
Thanks in advance.