Basic Date Picker Documentation

BasicDatePicker Class

Basic Date Picker is a professional cross-browser ASP.NET calendar web control. A quick loading DHTML calendar enables rapid, error free, date selection without the use of pop-up windows. Save development time and optimize user experience with this highly flexible, customizable control.

For a list of all members of this type, see BasicDatePicker Members.

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         BasicFrame.WebControls.DateControlBase
            BasicFrame.WebControls.BasicDatePicker

[Visual Basic]
Public Class BasicDatePicker
    Inherits DateControlBase
    Implements INamingContainer, IPostBackEventHandler, IPostBackDataHandler
[C#]
public class BasicDatePicker : DateControlBase, INamingContainer, IPostBackEventHandler, IPostBackDataHandler

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Use BasicDatePicker to provide a user friendly calendar control on a Web page. The control allows the user to select dates and move to the next or previous month with the use of Postbacks.

You can customize the appearance of BasicDatePicker be setting properties that control the style for different parts of the control. Every element of BasicDatePicker has a style property. All the style properties can be found in the "Style" section of the Visual Studio .NET properties editor.

By default, the control displays a TextBox with Image to the right. The following table lists all DatePickerDisplayTypes available.

DatePickerDisplayType Description
TextBoxAndButton Renders TextBox control and Button control.
TextBoxAndHyperLink Renders TextBox control with HyperLink control.
TextBoxAndImage Renders TextBox control with image. Default.
TextBox Reders TextBox only. If user clicks inside TextBox, calendar opens. See also OpenCalendarOnTextBoxFocus.
LabelAndButton Reders Label control with Button control.
LabelAndHyperLink Renders Label control with HyperLink control.
LabelAndImage Renders Label control with image.
Label Renders Label control only.
Button Renders Button control only.
HyperLink Renders HyperLink control only.
Image Renders image only.

You can also show or hide different parts of BasicDatePicker. The following table lists all the properties that control which parts are shown or hidden.

Property Description
ShowDayHeader Shows or hides the section that displays the days of the week.
ShowDaysInNextMonth Shows or hides the days in the next month that fill the space at the end of the current month.
ShowDaysInPrevMonth Shows or hides the days in the previous month that fill the space at the start of the current month.
ShowNextPrevMonth Show or hides the next and previous month navigation.
ShowNoneButton Show or hides the 'None' button which is displayed in the footer of the calendar. See also NoneButtonText.
ShowTitle Shows or hides the title section.
ShowTodayButton Show or hides the 'Today' button which is displayed in the footer of the calendar. See also TodayButtonText.
ShowWeekNumbers Show or hides the week numbers to the left of the calendar when opened.
Note   BasicDatePicker renders JavaScript to the user agent (Browser). The user agent must have JavaScript enabled for this control to function properly.

Screen Capture

Basic Date Picker

Example

[Visual Basic, C#] The following example demonstates how to create a BasicDatePicker control on a Web page.

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

Requirements

Namespace: BasicFrame.WebControls

Assembly: BasicFrame.WebControls.BasicDatePicker (in BasicFrame.WebControls.BasicDatePicker.dll)

See Also

BasicDatePicker Members | BasicFrame.WebControls Namespace