Is it possible to utilize JavaScript in order to prevent selection of Saturdays and Sundays on my Calendar Extender?
At present, I am disabling previous dates using code-behind during 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>
I would also like to disable a specific range of days starting from today.
For instance, if today is November 4, 2012, and I want to exclude 10 working days, then the dates between November 4 and 14 should be disabled.
Appreciate your help in advance.