Ah, I see the issue. AutoPostBack on textboxes usually occurs when focus is lost (or enter is clicked). This doesn't happen when the jQuery datepicker updates it for you.
What you can do is bind all types of change to a postback with jquery:
$(function(){
var textbox = $("input[id$='StartDate']");
$(textbox).change(function(e){
__doPostBack(this.attr("id"),e);
});
});
The __doPostBack(eventTarget,eventArgs); is how ASP.Net implements postbacks from it's controls. I doubt you use the eventArgs in your handler so you can even have that as null. This will cause any changes to the textbox to trigger a postback.
NB: this includes keyup, keydown,keyAnything!!
To exclude undesired postbacks, you can use the "on" function and add only what you need:
$(function(){
var textbox = $("input[id$='StartDate']");
$(textbox).on("paste propertychange",function(e){
__doPostBack(this.attr("id"),e);
});
});
You can also set up functions to detect if enter was clicked, or just use the datepicker onselect event:
$(".date").datepicker({
onSelect: function(dateText) {
var textbox = $("input[id$='StartDate']")
__doPostBack($(textbox).attr("id"),dateText);
}
});
Hope that helps ^_^
Andy