Click or drag to resize
KaxDateInput Class
A control which ensures the date entered by the user is verified and accurate.
Inheritance Hierarchy
SystemObject
  System.Web.UIControl
    System.Web.UI.WebControlsWebControl
      KaxWebControl
        Kettic.AspNet.ControlsKaxInputControl
          Kettic.AspNet.ControlsKaxDateInput

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public class KaxDateInput : KaxInputControl, 
	ICustomTypeDescriptor, IKaxDateInput

The KaxDateInput type exposes the following members.

Constructors
  NameDescription
Public methodKaxDateInput
Top
Methods
Properties
  NameDescription
Public propertyCode exampleCulture
Gets or sets the culture used by KaxDateInput to format the date.
Public propertyCode exampleDateFormat
Gets or sets the date and time format used by KaxDateInput.
Public propertyCode exampleDbSelectedDate
Gets or sets the date content of KaxDateInput in a database-friendly way.
Public propertyCode exampleDisplayDateFormat

Gets or sets the display date format used by KaxDateInput.(Visible when the control is not on focus.)

Public propertyIncrementSettings
Public propertyIsEmpty
Used to determine if KaxDateInput is empty.
Public propertyMaxDate
Gets or sets the largest date value allowed by KaxDateInput.
Public propertyMinDate
Gets or sets the smallest date value allowed by KaxDateInput.
Public propertyCode exampleOnClientDateChanged Obsolete.
Gets or sets the JavaScript event handler fired whenever the date of KaxDateInput changes.
Public propertyCode exampleSelectedDate
Gets or sets the date content of KaxDateInput.
Public propertyShortYearCenturyEnd
Gets or sets a value that indicates the end of the century that is used to interpret the year value when a short year (single-digit or two-digit year) is entered in the input.
Public propertyShortYearCenturyStart
Gets a value that indicates the start of the century that is used to interpret the year value when a short year (single-digit or two-digit year) is entered in the input.
Public propertyText (Overrides KaxInputControlText.)
Public propertyValidationDate Obsolete.
This property is no longer used. The recomended alternative is the Text property.
Top
Remarks
You need to set the DateFormat Property to specify the relevant format for the date. You can also specify the culture information by setting the Culture Property.
Examples
The following example demonstrates how to dynamically add KaxDateInput to the page.
private void Page_Load(object sender, System.EventArgs e) 
{ 
    KaxDateInput dateInput = new KaxDateInput();
    dateInput.ID = "dateInput";
    dateInput.Format = "d"; //Short date format
    dateInput.Culture = new CultureInfo("en-US");
    dateInput.SelectedDate = DateTime.Now;

    DateInputPlaceholder.Controls.Add(dateInput);
}
See Also