I'm using Calendar controller in my asp.net web forms application. I followed this article to implement Calendar in my application. I'm adding selected days into a List<DateTime> to remember selected dates and use them in future actions.
Now I have added buttons to my page like Select Weekends, Select Weekdays, Select Month and Select Year.
if I click on the
Select Weekendsbutton, I need to select all weekend days of current month and add them intoList<DateTime>.if I click on the
Select Weekdaysbutton, I need to select all week days of current month and add them intoList<DateTime>.if I click on the
Select Month** button, I need to select all days of the current month and add them intoList<DateTime>.if I click on the
Select Yearbutton, I need to select all days of the current year and add them intoList<DateTime>.
How can I do this programatically using C#?