W3Schools.com

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
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE