How to Disable weekends for AjaxToolKit Calendar extender

if you want to disable the weekends for an ajax toolkit calendar
here is the way.
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server"
            Enabled="True" TargetControlID="TextBox1" OnClientShown="DisableWeekends">
        </asp:CalendarExtender>
javascript method
           for (var i = 0; i &lt; 6; i++) {
                var row = sender._days.children[0].childNodes[1].children[i];
                for (var j = 0; j &lt; 7; j++) {
                    var cell = row.children[j].firstChild;

                    if (cell.id == sender._id + "_day_" + i + "_" + "5") {
                        cell.style.display = "none";
                    }
                    if (cell.id == sender._id + "_day_" + i + "_" + "6") {
                        cell.style.display = "none";
                    }
                }
            }

filter attribute that checks whether current connection is secured

using APS.net Core to mark all website pages working with https protocol we will do this using IAuthorizationFilter. and here is an exampl...