I have a custom control which contains a jquery datepicker and initializing it in $(document).ready()
function.
I am using this datepicker custom control in aspx page two times(start date and end date) which are placed inside update panel. This is working fine when the page loads for the first time and disappers when the postback happens.
I tried initializing datepicker in function pageLoad()
instead of $(document).ready()
but the problem with this approach is only end date datepicker is visible but not start date when the page loads for the first time or when the postback happens.
I tried other solutions but they are not working for this case. Here are few of solutions I tried link1 , link2 , link3 Please help.