have a page that contains a user control within an update panel.
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
----
----
<div id="dtBox"></div>
<script type="text/javascript">
$(document).ready(function () {
$("#dtBox").DateTimePicker({
dateFormat: "yyyy-MM-dd",
timeFormat: "hh:mm AA",
dateTimeFormat: "yyyy-MM-dd hh:mm:ss AA"
});
});
</script>
<asp:TextBox ID="abc" data-field="date" data-view="Dropdown" data-format="MM-dd-yyyy" runat="server"></asp:TextBox>
---
---
</ContentTemplate>
</asp:UpdatePanel>
$(document).ready(function() ) {}
is called and executes the code correctly when the page firsts loads but if the user clicks a button (within the user control), the document.ready() doesn't get called. I'm using CuriousSolutions-DateTimePicker