Basic Date Picker Documentation

BasicDatePicker.SelectableWeekendDays Property

Allow selection of WeekEndDays.

[Visual Basic]
Public Property SelectableWeekendDays As Boolean
[C#]
public bool SelectableWeekendDays {get; set;}

Property Value

Default value is true. If false, selection of weekend days is disabled.

Remarks

Use the SelectableWeekendDays property to specify whether the weekend days are selectable in the calendar.

The appearance of the weekend days can be customized by using the WeekendDayStyle property.

Example

[Visual Basic, C#] The following example demonstrates how to use the SelectableWeekendDays property to disable selection of weekend days.

[Visual Basic]
<%@ Page Language="VB" AutoEventWireup="true" %>
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<html>
 <head>
    <title>Basic Date Picker SelectableWeekendDays Example</title>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker SelectableWeekendDays Example</h3>
         <bdp:BasicDatePicker 
             ID="BasicDatePicker1" 
             runat="server"
             SelectableWeekendDays="false">
         </bdp:BasicDatePicker>
     </form>
 </body>
</html>

[C#]
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<html>
 <head>
    <title>Basic Date Picker SelectableWeekendDays Example</title>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker SelectableWeekendDays Example</h3>
         <bdp:BasicDatePicker 
             ID="BasicDatePicker1" 
             runat="server"
             SelectableWeekendDays="false">
         </bdp:BasicDatePicker>
     </form>
 </body>
</html>

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace