I have a form inside of a modal Rad Window.
One of the controls on this form is a Rad DatePicker.
There is a button on this form that I have added to clear the form fields. The javascript code that clears the DatePicker looks like this.
On the form, this works. The date value disappears.
Now, if I hit the button that closes the Window and posts back the form data, this line of code...
... shows me that the date value is still in the Rad DatePicker
I have even tried hard coding the clearing of the DatePicker's text box .
This line alone works in clearing the date from the form. But again when I read this control from the code behind, the value is still there,
What might be the cause of this?
One of the controls on this form is a Rad DatePicker.
There is a button on this form that I have added to clear the form fields. The javascript code that clears the DatePicker looks like this.
var StartDatePicker = $find("<%= dpStartDate.ClientID %>");
StartDatePicker.clear();
On the form, this works. The date value disappears.
Now, if I hit the button that closes the Window and posts back the form data, this line of code...
Start_Date = Convert.ToDateTime(dpStartDate.SelectedDate);
... shows me that the date value is still in the Rad DatePicker
I have even tried hard coding the clearing of the DatePicker's text box .
$("[id*='dpStartDate_dateInput_text']").val('');
This line alone works in clearing the date from the form. But again when I read this control from the code behind, the value is still there,
What might be the cause of this?