Basic Date Picker Documentation

BasicDatePicker.SelectablePrevMonthDays Property

Allow selection of Previous Month Days which are displayed before the first day of the current visible month.

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

Property Value

Default value is true. If false, selection of previous month days are disabled.

Remarks

Use the SelectablePrevMonthDays property to specify whether the previous month days are selectable in the calendar.

The appearance of the previous month days can be customized by using the OtherMonthDayStyle property.

Example

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

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

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace | SelectableNextMonthDays | ShowDaysInNextMonth | ShowDaysInPrevMonth | ShowNextPrevMonth