X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP.NET IsSelectable Property


CalendarDay Control Reference 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 »

CalendarDay Control Reference Complete CalendarDay Control Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook