Gets or set the date that specifies the month to display when calendar is opened. Moves calendar to Month/Year of Date value supplied.
A DateTime object that specifies the month to display on the BasicDatePicker control. The default is DateTime.MinValue (Null).
Use the VisibleDate property to programmatically set the month to display on the BasicDatePicker control. The specified date can be any day in the month you want to display, although it is common to use the first date in the month.
This property is set using a DateTime object.
[Visual Basic, C#] The following example demonstrates how to specify the VisibleDate property to programmatically set the value that determines the month that is displayed in the BasicDatePicker control.
[Visual Basic]
<%@ Page Language="VB" AutoEventWireup="True" %>
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<html>
<head>
<title>Basic Date Picker VisibleDate Example</title>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
If Not IsPostBack Then
' Set SelectedDate to Today.
BasicDatePicker1.VisibleDate = DateTime.Today.AddMonths(1)
End If
End Sub 'Page_Load
</script>
</head>
<body>
<form id="Form1" runat="server">
<h3>Basic Date Picker VisibleDate Example</h3>
>BDP:BasicDatePicker id="BasicDatePicker1" runat="server"></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 VisibleDate Example</title>
<script runat="server">
void Page_Load(Object sender, System.EventArgs e)
{
// Set VisibleDate to next month
if(!IsPostBack)
BasicDatePicker1.VisibleDate = DateTime.Today.AddMonths(1);
}
</script>
</head>
<body>
<form id="Form1" runat="server">
<h3>Basic Date Picker VisibleDate Example</h3>
<BDP:BasicDatePicker id="BasicDatePicker1" runat="server"></BDP:BasicDatePicker>
</form>
</body>
</html>
BasicDatePicker Class | BasicFrame.WebControls Namespace | SelectedDate