diff --git a/Site/Controls/v5/Base/DateTextBox.ascx.cs b/Site/Controls/v5/Base/DateTextBox.ascx.cs index cfbb9859..aa83f426 100644 --- a/Site/Controls/v5/Base/DateTextBox.ascx.cs +++ b/Site/Controls/v5/Base/DateTextBox.ascx.cs @@ -17,12 +17,17 @@ namespace Swarmops.Frontend.Controls.Base protected void Page_Load (object sender, EventArgs e) { this.TextInput.Attributes["role"] = "note"; // disable Lastpass trying to autofill - this.InterpretedDate.Value = DateTime.Today.ToString(CultureInfo.InvariantCulture); // initialize to valid value if (this.Layout == LayoutDirection.Unknown) { this.Layout = LayoutDirection.Vertical; } + + if (!Page.IsPostBack) + { + this.InterpretedDate.Value = DateTime.Today.ToString(CultureInfo.InvariantCulture); + // initialize to valid value + } } public DateTime Value