Creates a new instance of the BDPLite class.
Use this constructor to create and initialize a new instance of the BDPLite class.
[Visual Basic, C#] The following example demonstates how to create and initialize a new instance of the BDPLite class.
[Visual Basic]
<%@ Page Language="VB" AutoEventWireup="true" %>
<html>
<head>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
' Create new Basic Date Picker control.
Dim BDPLite1 as BasicFrame.WebControls.BDPLite = New BasicFrame.WebControls.BDPLite
' Set date picker properties.
BDPLite1.SelectedDate = DateTime.Today
' Add the date picker control to Controls collection.
Form1.Controls.Add(BDPLite1)
End Sub 'Page_Load
</script>
</head>
<body>
<form runat="server">
<h3>Basic Date Picker Example</h3>
</form>
</body>
</html>
[C#]
<%@ Page Language="C#" AutoEventWireup="true" %>
<html>
<head>
<title>BDP Lite Example</title>
<script runat="server">
void Page_Load(Object sender, EventArgs e)
{
// Create new Basic Date Picker control.
BasicFrame.WebControls.BDPLite BDPLite1 = new BasicFrame.WebControls.BDPLite();
// Set date picker properties.
BDPLite1.SelectedDate = DateTime.Today;
// Add the date picker control to Controls collection.
Form1.Controls.Add(BDPLite1);
}
</script>
</head>
<body>
<form runat="server">
<h3>BDP Lite Example</h3>
</form>
</body>
</html>
BDPLite Class | BasicFrame.WebControls Namespace