Bootstrap date picker inside Update Panel in ASP.net

[亡魂溺海] 提交于 2019-12-31 05:31:43

问题


I am using bootstrap datepicker which is working inside update panel if i write

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
 function EndRequestHandler(sender, args) 
 {
 $('.form-control.reqByDate').datepicker({ format: "dd-M-yyyy", changeMonth: true, changeYear: true, autoclose: true });
 };

But I am also using :

 Response.write("<script>alert('something to alert ')</script>") ; (ignore syntax as it works fine without the endrequesthandler)

which stops working... is there any relation can someone help me to get both the things working

the datepicker code is in document.ready function with:

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

来源:https://stackoverflow.com/questions/58776845/bootstrap-date-picker-inside-update-panel-in-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!