Click here to Skip to main content
15,915,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,
I'm using UpdatePanel of Ajax extension of ASP.NET.
I don't want reload all my aspx page, so i use UpdatePanel, but when content in <ContentTemplate>reload, some of jquery is not work, because some script i call in document.Ready function, so how can i reload these script without using Page_Load from server.
Thanks
Posted

1 solution

I had the same problem, after partial postback, the script specified in $(document).ready was not executed.

Adding a script below fixes the issue

JavaScript
<script type="text/javascript"> 
  Sys.WebForms.PageRequestManager.getInstance().add_endRequest(myReadyFunction); 
</script> 
</script>


*Note: Don't forget to mark it as answer if it works for you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900