user788312
user788312

Reputation: 479

AJAX Calendar Extender onchange event

I am using an AJAX Calendar Extender as the calendar component in my project. And I need to call some javascript function on change of the date.. I am using onclientdateselectionchanged event to do this and it works fine. But the problem is it works only If I select the date from the calendar using mouse. If I enter the date manually then the javascript function is not getting called..Can you please suggest how to call the function, if I enter the date manually also. Thanks in Advance..

Upvotes: 0

Views: 3537

Answers (2)

jrichview
jrichview

Reputation: 390

You probably have solved this one way or another long ago, but I ran into this today while searching for (what turns out to be my answer:) onclientdateselectionchanged. Since you helped me find my answer, here is yours.

To handle the case where the user manually enters date info, just apply another handler for "onkeyup" event. Example:

  txtLastName.Attributes.Add("OnKeyUp", "OnFormFieldChanged();");

Upvotes: 1

v42
v42

Reputation: 1425

I strongly recommend you to switch to jQuery UI Datepicker, you won't regret:

http://jqueryui.com/demos/datepicker/

Upvotes: 0

Related Questions