ASP.NET Calendar - Week select

Click on a day to select the entire week!!!.

 

ASP.NET

<asp:UpdatePanel runat="server" ID="updatePanel1"><ContentTemplate>
    <obout:Calendar ID="Calendar1"
                 runat="server"
                 Columns="1"
                 AutoPostBack="true"
                 TitleText="Week select"
                 OnDateChanged="Date_Changed"
                 StyleFolder="styles/default">
    </obout:Calendar>
</ContentTemplate></asp:UpdatePanel>        

C#

    protected void Date_Changed(object o, EventArgs e)
    {
            DateTime selectedDate = Calendar1.SelectedDate;

            if (DateTime.Compare(selectedDate, new DateTime(0)) == 0)
            {
                return;
            }
					
            Calendar1.SpecialDates.Clear();
            for (int index = 0;index < 7;index++)
            {
                int addedDays = (int)(index - selectedDate.DayOfWeek);
                Calendar1.AddSpecialDate(selectedDate.AddDays(addedDays).Year, 
                selectedDate.AddDays(addedDays).Month, 
                selectedDate.AddDays(addedDays).Day, "Week select");
            }
	}