Author: lucy1986 | Posted on: 9/17/2010 4:50:43 PM | Views : 857

I am starting doing my website project with ASP.NET Calender control, and i have encounter a problem in specify day that user can selec. 


In scenario 1, user cannot select weekend. As scenario 2, user can only select Tuesday and Thursday only for every month , any suggestions/ideas to implement it ?


scenario 1

protected void Calendar1_DayRender(object sender, DayRenderEventArgs e) { if (e.Day.IsWeekend || e.Day.Date.Year > 2010) { e.Day.IsSelectable = false; } }

 

i have refer to link below but still no idea how to let user select only tuesday and thursday.

http://msdn.microsoft.com/en-us/library/k4t1kwcd%28v=VS.80%29.aspx
...

Go to the complete details ...