Basic Date Picker Documentation

BasicDatePicker Members

BasicDatePicker overview

Public Static (Shared) Methods

FormatDateOverloaded. Creates string of supplied DateTime object based on supplied date format.
ParseDateOverloaded. Parse string and return DateTime object as per supplied date format.

Public Instance Constructors

BasicDatePicker Constructor Creates a new instance of the BasicDatePicker class.

Public Instance Properties

AccessKey (inherited from WebControl) Gets or sets the access key (underlined letter) that allows you to quickly navigate to the Web server control.
Attributes (inherited from WebControl) Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
AutoPostBack Automatically postback to the server after the date is modified.
BackColor (inherited from WebControl) Gets or sets the background color of the Web server control.
BindingContainer (inherited from Control) 
BorderColor (inherited from WebControl) Gets or sets the border color of the Web control.
BorderStyle (inherited from WebControl) Gets or sets the border style of the Web server control.
BorderWidth (inherited from WebControl) Gets or sets the border width of the Web server control.
ButtonImageFileNameGets or sets the image button file name.
ButtonImageHeight Gets or sets the height of the Image button.
ButtonImageWidth Gets or sets the width of the Image button.
ButtonPosition Gets or Sets the position of the button in relation to the TextBox. Default = Right.
ButtonStyle Gets the style properties for the launching Button style.
ButtonText Gets or sets the Text value of the launching element if Label or Button.
CalendarStyle Gets the style properties for the main calendar elements.
ClientID (inherited from Control) Gets the server control identifier generated by ASP.NET.
ClientTarget Determines how BasicDatePicker should render to various browsers.
Columns Gets or sets the number of columns of calendars displayed when opened. Default value is 1.
Controls Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle (inherited from WebControl) Gets the style of the Web server control. This property is used primarily by control developers.
ControlStyleCreated (inherited from WebControl) Gets a value indicating whether a Style object has been created for the ControlStyle property. This property is primarily used by control developers.
CssClass Gets or sets CSS class applied to the <span> tag that wraps the control.
DateFormat Gets or sets the custom date format. Uses .NET DateTime format specifiers. "d" = ShortDate. "D" = LongDate. (d = day, M = Month, y = Year).
DatePickerDisplayType Gets or sets how the combination of controls will be displayed.
DayHeaderStyle Gets the style properties for the elements in the day header. Includes day names.
DayNameFormat Gets or sets the format of how the Day labels will be displayed. Options include (Enum): DayNameFormat.Full, .Short, .FirstLetter or .FirstTwoLetters
DayStatusBarText Gets or sets the value that will be display in the bottom status bar of the web browser.
DayStyle Gets the style properties for the day.
DownYearSelectorImageFileNameGets or sets the Down Year Selector image file name.
DownYearSelectorText Gets or sets the down year selector text UpDownYearSelectorFormat is set to CustomText.
Enabled Gets or sets a value indicating whether the BasicDatePicker is enabled. if Enabled = false, TextBox readonly attribute will be set to readonly and Image Button will be set to Disabled.
EnableViewState (inherited from Control) Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client.
FirstDayOfWeek Gets or sets the day of the week to display in the first day column of the BasicDatePicker control.
Font (inherited from WebControl) Gets the font properties associated with the Web server control.
FooterStyle Gets the style properties for the footer style.
FootNoteStyle Gets the style properties for the foot note style.
FootNoteText Gets or sets the foot note text. Can contain HTML.
ForceSixRows Gets or sets a value indicating whether to force calendar to display 6 rows.
ForeColor (inherited from WebControl) Gets or sets the foreground color (typically the color of the text) of the Web server control.
Height (inherited from WebControl) Gets or sets the height of the Web server control.
ID (inherited from Control) Gets or sets the programmatic identifier assigned to the server control.
IsDate Gets a value indicating whether the posted text can be parsed into a valid DateTime object. If the text value can not be parsed into a DateTime object based on the DateFormat, then false is returned.
IsDownLevel Gets a value indicating whether the current request comes from a DownLevel browser.
IsNull Gets a value indicating whether the SelectedDate is [Null]. There is no DateTime Null value in .NET, so DateTime.MinValue is returned to represent [Null].
JavaScriptFileName Gets or sets the JavaScript URL. If empty, JavaScript will be output inline on the page.
LabelStyle Gets the style properties for the Label style.
LicenseKey Gets or sets the license key. Please visit http://www.basicframe.com to purchase key.
MaximumDate Gets or sets the date that specifies the maximum allowable selectable date.
MinimumDate Gets or sets the date that specifies the minimum allowable selectable date.
MonthSelectorEnabled Gets or sets a value indicating whether the month selector is enabled.
MonthSelectorXOffset Gets or sets the month selectors x-offset.
MonthSelectorYOffset Gets or sets the month selector's y-offset.
NamingContainer (inherited from Control) Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same ID property value.
NextMonthImageFileNameGets or sets the file name of the NextMonth image (ie. arrows).
NextMonthText Gets or sets the text to be used for navigating to the next month. NextPrevFormat must be set to NextPrevFormat. CustomText for this custom text to be rendered.
NextPrevFormat Gets or sets the NextPrev (ie. arrows) format.
NextPrevMonthImageHeight Gets or sets the height of the NextMonth and PrevMonth images (ie. arrows).
NextPrevMonthImageWidth Gets or sets the width (px) of the NextMonth and PrevMonth images (ie. arrows).
NextPrevStyle Gets the style properties for the next and previous elements.
NoneButtonStyle Gets the style properties for the None Button style.
NoneButtonText Gets or sets the 'None' button text.
NullDateText Gets or sets the text displayed when NullDate(DateTime.MinValue) is supplied. Value can be applied to TextBox, Label, HyperLink and Button.
OnClientAfterCalendarOpen Custom JavaScript function which is fired just after calendaris opened. Example: BasicDatePicker1.OnClientAfterCalendarOpen = "myCustomAfterCalendarOpenFunction";
OnClientAfterSelectionChanged Custom JavaScript function which is fired just after internal client-side SelectionChanged Event is fired. Example: BasicDatePicker1.OnClientAfterSelectionChanged = "myCustomAfterChangedFunction";
OnClientAfterVisibleMonthChanged Custom JavaScript function which is fired just after internal client-side MonthChanged Event is fired. Example: BasicDatePicker1.OnClientAfterVisibleMonthChanged = "myCustomAfterVisibleMonthChangedFunction";
OnClientBeforeCalendarClose Custom JavaScript function which is fired just before calendar is closed. Example: BasicDatePicker1.OnClientBeforeCalendarClose = "myCustomBeforeCalendarCloseFunction";
OnClientBeforeCalendarOpen Custom JavaScript function which is fired just before calendar is opened. Example: BasicDatePicker1.OnClientBeforeCalendarOpen = "myCustomBeforeCalendarOpenFunction";
OnClientBeforeSelectionChanged Custom JavaScript function which is fired just before internal client-side SelectionChanged Event is fired. Example: BasicDatePicker1.OnClientBeforeSelectionChanged = "myCustomBeforeChangedFunction";
OnClientBeforeVisibleMonthChanged Custom JavaScript function which is fired just before internal client-side MonthChanged Event is fired. Example: BasicDatePicker.OnClientBeforeVisibleMonthChanged = "myCustomBeforeVisibleMonthChangedFunction";
OnClientDayRender Custom JavaScript function which is fired when each day is created. Example: BasicDatePicker1.OnClientDayRender = "myCustomDayrenderFunction";
OpenCalendarOnTextBoxFocus If focus is placed on TextBox, then open calendar.
OtherMonthDayStyle Gets the style properties for the cells in the next or previous months.
Page (inherited from Control) Gets a reference to the Page instance that contains the server control.
Parent (inherited from Control) Gets a reference to the server control's parent control in the page control hierarchy.
PopUpStyle Gets the style properties for the main pop up calendar wrapper.
PostedText Gets the exact string value entered by user into the TextBox.
PrevMonthImageFileNameGets or sets the file name of the PrevMonth image (ie. arrows).
PrevMonthText Gets or sets the text to be used for navigating to the previous month. NextPrevFormat must be set to NextPrevFormat.CustomText for this custom text to be rendered.
ReadOnly Gets or sets a value indicating whether TextBox is readonly. Does not allow editing within TextBox.
RenderJavaScript If false no inline JavaScript or <script language="javascript"> will be rendered to the page, other than the Parameters required by the instance of the DatePicker.
RenderStyleSheet If false no inline styles or <style> block will be rendered to the page.
ResourcePath Gets or Sets the root path to resources (example: .js, .css, images) required by the control.
Rows Gets or sets the number of rows of calendars displayed when opened. Default value is 1.
SelectableNextMonthDays Allow selection of Next Month Days which are displayed after the last day of the current visible month.
SelectablePrevMonthDays Allow selection of Previous Month Days which are displayed before the first day of the current visible month.
SelectableWeekDays Allow selection of WeekDays.
SelectableWeekendDays Allow selection of WeekEndDays.
SelectedDate Gets or sets the current selected date of the calendar. Accepts and returns a DateTime object.
SelectedDateFormatted Gets the formatted SelectedDate as string based on the DateFormat.
SelectedDateTimeFormatted Gets the formatted SelectedDate and concatinated SelectedTime as string based on the DateFormat and TimeFormat.
SelectedDayStyle Gets the style properties for the SelectedDate.
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 cells at the end of the current month.
ShowDaysInPrevMonth Shows or hides the days in the previous month that fill the cells at the start of the current month.
ShowNextPrevMonth Show or hides the next and previous month navigation elements in the title section.
ShowNoneButton Show or hides the 'None' button which is displayed at the bottom of th calendar.
ShowTitle Shows or hides the title section. Includes both month name and Next/Prev navigation.
ShowTodayButton Gets or sets a value indicating whether show the 'Today' button.
ShowWeekNumbers Gets or sets a value indicating whether the week numbers are displayed.
Site (inherited from Control) Gets information about the Web site to which the server control belongs.
SpecialDates Gets or sets the ControlId of the SpecialDates object.
Style (inherited from WebControl) Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control.
StyleSheetFileName Gets or sets the StyleSheet URL. If empty, CSS will be output inline by the control.
TabIndex (inherited from WebControl) Gets or sets the tab index of the Web server control.
TemplateSourceDirectory (inherited from Control) Gets the virtual directory of the Page or UserControl that contains the current server control.
TextBoxColumns Gets or sets the value of the 'size' attribute of the <input> tag (TextBox).
TextBoxMaxLength Gets or sets the value of the 'maxlength' attribute of the <input> tag (TextBox).
TextBoxStyle Gets the style properties for the TextBox style.
TimePicker Gets or sets the Id of the TimePicker which is linked to this instance of the Date Picker.
TitleStyle Gets the style properties for the Title style.
TodayButtonStyle Gets the style properties for the Today Button style.
TodayButtonText Gets or sets the 'Today' button text.
TodayDayStyle Gets the style properties for today element style.
ToolTip (inherited from WebControl) Gets or sets the text displayed when the mouse pointer hovers over the Web server control.
TwoDigitYearBreak If two digit year(yy) supplied in DateFormat or DateFormat, BasicDatePicker will add 1900 to year if above value or 2000 if below.
UniqueID (inherited from Control) Gets the unique, hierarchically-qualified identifier for the server control.
UpDownYearSelectorFormat Gets or sets the up down year selector format.
UpDownYearSelectorImageHeight Gets or sets the height of the up down year selector image.
UpDownYearSelectorImageWidth Gets or sets the width of the up down year selector image.
UpYearSelectorImageFileNameGets or sets the Up Year Selector image file name.
UpYearSelectorText Gets or sets the up year selector text if UpDownYearSelectorFormat is set to CustomText.
Visible (inherited from Control) Gets or sets a value that indicates whether a server control is rendered as UI on the page.
VisibleDate Gets or set the date that specifies the month to display when calendar is opened. Moves calendar to Month/Year of Date value supplied.
WeekendDayStyle Gets the style properties for weekend days.
WeekNumberStyle Gets the style properties for the week number style.
Width (inherited from WebControl) Gets or sets the width of the Web server control.
XOffset Gets or sets the X offset of the calendar from the bottom-right of the launching element (Button, Image, HyperLink, Label or TextBox). Can be negative value.
YearSelectorEnabled Gets or sets a value indicating whether the year selector is enabled.
YearSelectorXOffset Gets or sets the year selector's x-offset.
YearSelectorYOffset Gets or sets the year selector's y-offset.
YOffset Gets or sets the Y offset of the calendar from the bottom-right of the launching element (Button, Image, HyperLink, Label or TextBox). Can be negative value.

Public Instance Methods

ApplyStyle (inherited from WebControl) Copies any nonblank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
Clear Clears the SelectedDate by setting the SelectedDate DateTime.MinValue (Null)).
CopyBaseAttributes (inherited from WebControl) Copies the properties not encapsulated by the Style object from the specified Web server control to the Web server control that this method is called from. This method is used primarily by control developers.
DataBind (inherited from Control) Binds a data source to the invoked server control and all its child controls.
Dispose (inherited from Control) Enables a server control to perform final clean up before it is released from memory.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
FindControl (inherited from Control)Overloaded. Searches the current naming container for a server control with the specified id parameter.
FormatDateOverloaded. Creates string of supplied DateTime object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
HasControls (inherited from Control) Determines if the server control contains any child controls.
LoadPostData Loads the post data.
MergeStyle (inherited from WebControl) Copies any nonblank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is used primarily by control developers.
ParseDateOverloaded. Parse string and return DateTime object as per supplied date format. DateFormat.
RaisePostBackEvent Raises the post back event.
RaisePostDataChangedEvent Raises the post data changed event.
RenderBeginTag (inherited from WebControl) Renders the HTML opening tag of the control into the specified writer. This method is used primarily by control developers.
RenderControl (inherited from Control) Outputs server control content to a provided HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
RenderEndTag (inherited from WebControl) Renders the HTML closing tag of the control into the specified writer. This method is used primarily by control developers.
ResolveUrl (inherited from Control) Converts a URL into one that is usable on the requesting client.
SetRenderMethodDelegate (inherited from Control) 
ToString (inherited from Object) Returns a String that represents the current Object.

Public Instance Events

DataBinding (inherited from Control) Occurs when the server control binds to a data source.
Disposed (inherited from Control) Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init (inherited from Control) Occurs when the server control is initialized, which is the first step in the its lifecycle.
Load (inherited from Control) Occurs when the server control is loaded into the Page object.
PreRender (inherited from Control) Occurs when the server control is about to render to its containing Page object.
SelectionChanged Occurs when the user selects a new day.
Unload (inherited from Control) Occurs when the server control is unloaded from memory.

Protected Instance Properties

ChildControlsCreated (inherited from Control) Gets a value that indicates whether the server control's child controls have been created.
Context (inherited from Control) Gets the HttpContext object associated with the server control for the current Web request.
Events (inherited from Control) Gets a list of event handler delegates for the control. This property is read-only.
HasChildViewState (inherited from Control) Gets a value indicating whether the current server control's child controls have any saved view-state settings.
IsTrackingViewState (inherited from Control) Gets a value that indicates whether the server control is saving changes to its view state.
TagKey (inherited from WebControl) Gets the HtmlTextWriterTag value that corresponds to this Web server control. This property is used primarily by control developers.
TagName (inherited from WebControl) Gets the name of the control tag. This property is used primarily by control developers.
ViewState (inherited from Control) Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page.
ViewStateIgnoresCase (inherited from Control) Gets a value that indicates whether the StateBag object is case-insensitive.

Protected Instance Methods

AddAttributesToRender (inherited from WebControl) Adds HTML attributes and styles that need to be rendered to the specified HtmlTextWriter. This method is used primarily by control developers.
AddParsedSubObject (inherited from Control) Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control's ControlCollection object.
BuildProfileTree (inherited from Control) 
ClearChildViewState (inherited from Control) Deletes the view-state information for all the server control's child controls.
CreateChildControls Notifies server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
CreateControlCollection (inherited from Control) Creates a new ControlCollection object to hold the child controls (both literal and server) of the server control.
CreateControlStyle (inherited from WebControl) Creates the style object that is used internally by the WebControl class to implement all style related properties. This method is used primarily by control developers.
EnsureChildControls (inherited from Control) Determines whether the server control contains child controls. If it does not, it creates child controls.
Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
FindControl (inherited from Control)Overloaded.  
IsLiteralContent (inherited from Control) Determines if the server control holds only literal content.
LoadViewState Loads the state of the view.
MapPathSecure (inherited from Control) Retrieves the physical path that a virtual path, either absolute or relative, maps to.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OnBubbleEvent (inherited from Control) Determines whether the event for the server control is passed up the page's UI server control hierarchy.
OnDataBinding (inherited from Control) Raises the DataBinding event.
OnInit 
OnLoad (inherited from Control) Raises the Load event.
OnPreRender This member overrides Control.OnPreRender.
OnSelectionChanged Raises the SelectionChanged event of the BasicDatePicker control and allows you to provide a custom handler for the SelectionChanged event.
OnUnload (inherited from Control) Raises the Unload event.
Note    Server controls should perform any final cleanup, such as closing files, closing database connections, and discarding objects, during this stage of the server control lifecycle.
RaiseBubbleEvent (inherited from Control) Assigns any sources of the event and its information to the control's parent.
Render (inherited from WebControl) 
RenderChildren (inherited from Control) Outputs the content of a server control's children to a provided HtmlTextWriter object, which writes the content to be rendered on the client.
RenderContents Renders the contents of the control into the specified writer. This method is used primarily by control developers.
SaveViewState This member overrides Control.SaveViewState.
TrackViewState This member overrides Control.TrackViewState.

Protected Internal Instance Methods

AddedControl (inherited from Control) Called after a control is added to the Controls collection of another control.
RemovedControl (inherited from Control) Called after a control is removed from the Controls collection of another control.

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace