Hello there,
Try adding this line after your DatePicker code:
Sys.WebForms.PageRequestManager.getInstance().add_endRequest
It'll restore your script after ajax postback.
I have modified your code slightly to achieve the solution:
jQuery(function ($) {
MyDatePickerFunction();
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(MyDatePickerFunction);
});
function MyDatePickerFunction()
{
$("#<%= txtfrmdate.ClientID%>").datepicker({
changeMonth: true,
changeYear: true,
showWeek: true,
gotoCurrent: true,
yearRange: '-70:+10',
constrainInput: false
});
}
Hope it helps,
good luck
Azee...