How to disable to select Weekends(Saturday and Sunday) in Calendar control in asp.net?

 

 here is a solution

.aspx

<asp:Calendar ID="Calendar1" runat="server" ondayrender="Calendar1_DayRender">

</asp:Calendar>

 

Code-behind

    protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)

    {

        if (e.Day.IsWeekend)

        {

            e.Day.IsSelectable = false;

        }

 

    }