I have a simple calendar control on a reservations site I built in ASP.NET. The venue is closed every Monday and Tuesday so I would like to disable those days on the calendar. I know I can disable specific days using something like this:
dim closeddays as new style()
with closeddays
.backcolor = system.drawing.color.red
.bordercolor = system.drawing.color.white
.borderwidth = new unit(3)
end with
if e.day.date = dateadd("d", 7, "07-Jan-08") then
e.cell.applystyle(closedda
ys)
e.day.isselectable = false
end if
Is there an easy way to disable all Mondays and Tuesdays in the calendar control?
thanks for the help!
Start Free Trial