Search code examples
asp.netajaxcontroltoolkitcalendarextender

How to reset Calendar Extender for Ajax Control Toolkit to its default value which should be empty string (server side)?


How to reset Calendar Extender for Ajax Control Toolkit to its default value which should be empty string? Reset to be server side.


Solution

  • You must reset both calendar extender and its target control (textbox).

            txtProductionDate.Text = string.Empty;
            calExtProductionDate.SelectedDate = null;