Given:
Where the id = datepicker tells the javascript to attach all the datepicker code to
You need to reference the client ID of the control in the Jquery datepicker initialisation, like such:
$(function() { $("#<%=dateTo.ClientID %>").datepicker(); });
Seems to work :)