I am using the 'OnDateSelected' to do some checks when the date is changed but I also need to check when they type into the textbox and change the date. I tried adding the onKeyUp event to my datepicker on form load but it does not fire.
The problem is that I enable/disable a button if any thing on the form has changed. If they pick a different date via the calendar the OnDateSelected fires and the button is enabled. If they then type in the textbox and change the date back to the original and click the button, the page freezes because my javascript is trying to disable the button (OnDateSelected fires when the textbox loses focus) at the same time the page is trying to do a postback The button shows in the pressed state and the page just sits there.
The problem is that I enable/disable a button if any thing on the form has changed. If they pick a different date via the calendar the OnDateSelected fires and the button is enabled. If they then type in the textbox and change the date back to the original and click the button, the page freezes because my javascript is trying to disable the button (OnDateSelected fires when the textbox loses focus) at the same time the page is trying to do a postback The button shows in the pressed state and the page just sits there.