Basic Date Picker Documentation

BasicDatePicker Constructor 

Creates a new instance of the BasicDatePicker class.

[Visual Basic]
Public Sub New()
[C#]
public BasicDatePicker();

Remarks

Use this constructor to create and initialize a new instance of the BasicDatePicker class.

Example

[Visual Basic, C#] The following example demonstates how to create and initialize a new instance of the BasicDatePicker 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 BasicDatePicker1 as BasicFrame.WebControls.BasicDatePicker = New BasicFrame.WebControls.BasicDatePicker

         ' Set date picker properties.
         this.BasicDatePicker1.SelectedDate = DateTime.Today
         this.BasicDatePicker1.ShowWeekNumbers = true
         this.BasicDatePicker1.DisplayType = BasicFrame.WebControls.DatePickerDisplayType.Button
         
         ' Add the date picker control to Controls collection.
         Form1.Controls.Add(BasicDatePicker1)
     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>
         <script runat="server">
     void Page_Load(Object sender, EventArgs e)
     {
         // Create new Basic Date Picker control.
         BasicFrame.WebControls.BasicDatePicker BasicDatePicker1 = new  BasicFrame.WebControls.BasicDatePicker();

         // Set date picker properties.
         this.BasicDatePicker1.SelectedDate = DateTime.Today;
         this.BasicDatePicker1.ShowWeekNumbers = true;
         this.BasicDatePicker1.DisplayType = BasicFrame.WebControls.DatePickerDisplayType.Button;
         
         // Add the date picker control to Controls collection.
         Form1.Controls.Add(BasicDatePicker1);
     }
     </script>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker Example</h3>
     </form>
    </body>
</html>

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace