Try our conversational search powered by Generative AI!

Class InputDate

Provides a user interface for setting a System.DateTime value.

Inheritance
System.Object
InputDate
Implements
System.Web.UI.INamingContainer
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class InputDate : InputBase, INamingContainer

Constructors

InputDate()

Declaration
public InputDate()

Properties

DisplayButtons

Gets or sets a value indicating whether the control should render dialog buttons

Declaration
public bool DisplayButtons { get; set; }
Property Value
Type Description
System.Boolean

true if the control should render dialog button; otherwise, false. Default value is true.

DisplayName

Gets or sets the name that is used to create validation error messages.

Declaration
public string DisplayName { get; set; }
Property Value
Type Description
System.String

The name that is used to create validation error messages.

DisplayTime

Gets or sets a value indicating whether the control should render time selection field

Declaration
public bool DisplayTime { get; set; }
Property Value
Type Description
System.Boolean

true if the control should render time; otherwise, false. Default value is true.

Input

Gets the input System.Web.UI.WebControls.TextBox.

Declaration
public TextBox Input { get; }
Property Value
Type Description
System.Web.UI.WebControls.TextBox

The input System.Web.UI.WebControls.TextBox.

ValidateInput

Gets or sets a value indicating whether the control should validate the input.

Declaration
public bool ValidateInput { get; set; }
Property Value
Type Description
System.Boolean

true if the control should validate the input; otherwise, false. Default value is true.

Value

Gets or sets the value of input textbox.

Declaration
public DateTime Value { get; set; }
Property Value
Type Description
System.DateTime

The System.DateTime value.

Methods

CreateChildControls()

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

Declaration
protected override void CreateChildControls()

OnDataBinding(EventArgs)

Raises the System.Web.UI.Control.DataBinding event.

Declaration
protected override void OnDataBinding(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

An System.EventArgs object that contains the event data.

OnPreRender(EventArgs)

Raises the System.Web.UI.Control.PreRender event.

Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

An System.EventArgs object that contains the event data.

Implements

System.Web.UI.INamingContainer

Extension Methods