Author: jam.soft | Posted on: 1/11/2010 6:57:42 AM | Views : 325

Hi all,
what I need is to make selectable only first day of the week in the calendar control placed on the form and to get collection of all selectable days when user submits the form.  The first mentioned I can do within the DayRender event. But later, when user clicks on the submit button, I need to get the collection or array of the selectable days (not one selected but all selectable). I think there is not such collection in the Calendar control. Am I right? How can I do it? It doesn't matter if I will get date strings, day objects or whatever else but I need collection of dates made selectable only. Bellow is my code for selecting only the first day of the week. It works well...
protected void calender_DayRender(object sender, DayRenderEventArgs e) { if (e.Day.Date.DayOfWeek.ToString() != calender.FirstDayOfWeek.ToStri ...

Go to the complete details ...