ASP.NET IsSelectable Property
Complete CalendarDay Control Reference
Definition and Usage
The IsSelectable property is used to get or set whether or not a date is
selectable.
This property returns "TRUE" if the date is selectable.
Example
The following example shows a calendar where the weekends are not selectable:
<script runat="server">
Sub DaySelect(obj As Object, e As DayRenderEventArgs)
If e.Day.IsWeekend Then
e.Day.IsSelectable = False
End If
End Sub
</script>
<form runat="server">
<form runat="server">
The weekends are not selectable
<asp:Calendar id="cal1" runat="server"
OnDayRender="DaySelect" />
</form>
Show example »
Complete CalendarDay Control Reference
Color Picker