Remove the <%=
tags from your script output. You only use that if your writing .NET code in the ASPX page, not in the code behind. So if you DatePicker's ClientID is dpDatePicker_ct100
, what your actually outputting in your script is <%=dpDatePicker_ct100%>
, which would obviously return null because it doesn't exist.
I hope that helps.