Class DateEditControl
The DateEditControl control provides a standard UI component for editing date properties.
Implements
Inherited Members
Namespace: DotNetNuke.UI.WebControls
Assembly: DotNetNuke.dll
Syntax
public class DateEditControl : EditControl
Properties
| Improve this Doc View SourceDateValue
Gets dateValue returns the Date representation of the Value.
Declaration
protected DateTime DateValue { get; }
Property Value
Type | Description |
---|---|
DateTime | A Date representing the Value. |
DefaultFormat
Gets defaultDateFormat is a string that will be used to format the date in the absence of a FormatAttribute.
Declaration
protected virtual string DefaultFormat { get; }
Property Value
Type | Description |
---|---|
System.String | A String representing the default format to use to render the date. |
Format
Gets format is a string that will be used to format the date in View mode.
Declaration
protected virtual string Format { get; }
Property Value
Type | Description |
---|---|
System.String | A String representing the format to use to render the date. |
OldDateValue
Gets oldDateValue returns the Date representation of the OldValue.
Declaration
protected DateTime OldDateValue { get; }
Property Value
Type | Description |
---|---|
DateTime | A Date representing the OldValue. |
StringValue
Gets or sets the Value expressed as a String.
Declaration
protected override string StringValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceCreateChildControls()
The DateEditControl control provides a standard UI component for editing date properties.
Declaration
protected override void CreateChildControls()
LoadDateControls()
The DateEditControl control provides a standard UI component for editing date properties.
Declaration
protected virtual void LoadDateControls()
LoadPostData(String, NameValueCollection)
LoadPostData loads the Post Back Data and determines whether the value has change.
Declaration
public override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters
Type | Name | Description |
---|---|---|
System.String | postDataKey | A key to the PostBack Data to load. |
NameValueCollection | postCollection | A name value collection of postback data. |
Returns
Type | Description |
---|---|
System.Boolean | true if the value has changed, otherwise false. |
Overrides
| Improve this Doc View SourceOnDataChanged(EventArgs)
OnDataChanged is called by the PostBack Handler when the Data has changed.
Declaration
protected override void OnDataChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e | An EventArgs object. |
Overrides
| Improve this Doc View SourceOnPreRender(EventArgs)
The DateEditControl control provides a standard UI component for editing date properties.
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
RenderEditMode(HtmlTextWriter)
RenderEditMode is called by the base control to render the control in Edit Mode.
Declaration
protected override void RenderEditMode(HtmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
HtmlTextWriter | writer |
Overrides
| Improve this Doc View SourceRenderViewMode(HtmlTextWriter)
RenderViewMode renders the View (readonly) mode of the control.
Declaration
protected override void RenderViewMode(HtmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
HtmlTextWriter | writer | A HtmlTextWriter. |