Hello.
I have my own web control which contains DateTimePicker.
As you can see I am trying to assign value to datetimepicker during its Render method.
The datetimepicker value is assigned only to popup calendar and not to the input textbox. Its input textbox is empty.
:-(
Thank you
I have my own web control which contains DateTimePicker.
protected override void Render(HtmlTextWriter writer) |
{ |
//base.Render(writer); |
this.SetInputNameAndControlID(); |
if (!this.DesignMode) |
sm.RegisterScriptDescriptors(this); |
dateTimePicker.ID = this.ID + "dateTimePicker"; |
// nastavení hodnoty |
if (this._value != System.DateTime.MinValue) |
thisthis.dateTimePicker.SelectedDate = this._value; |
else |
this.dateTimePicker.SelectedDate = null; |
As you can see I am trying to assign value to datetimepicker during its Render method.
The datetimepicker value is assigned only to popup calendar and not to the input textbox. Its input textbox is empty.
:-(
Thank you