当我点击文本框datetimepicker弹出窗口后,当我点击选择器外部关闭它时,页面回发但textchange不会被触发。要么它不应该回发页面或textchange被解雇在这里解决。有谁知道如何解决这个问题?
<script>
$(function () {
$("#<%=dpStartDateTime.ClientID%>").datepicker({ autoclose: true, weekStart: 1, language: "tr" }).next().on(ace.click_event, function () {
$(this).prev().focus();
});
});
</script>
<asp:TextBox ID="dpStartDateTime" runat="server" CssClass="form-control date-picker" data-date-format="dd.mm.yyyy" AutoPostBack="true" OnTextChanged="dpStartDateTime_TextChanged"></asp:TextBox><span class="input-group-addon"><i class="fa fa-calendar bigger-110"></i></span>
答案 0 :(得分:0)
更改
AutoPostback="true"
至
`的AutoPostBack =&#34;假&#34;&#39;