protected override void OnLoad( EventArgs e ) { base.OnLoad( e ); // make sure the input's value matches the text on PostBack (DatePicker relies on "value" of input and text) this.Attributes["value"] = this.Text; }