Jquery Code in ASP.NET UpdatePanel solution

/ Published in: jQuery
Save to your folder(s)

Just replace classic document.ready with pageLoad function as belows:

pageLoad function will called on all postback and partial postbacks. So it makes the jquery code no matter what :D
Even in update panel.

Copy this code and paste it in your HTML
  1. Replace this :
  2. $(document).ready(function(){
  3. //Jquery Code
  4. });
  8. With this :
  9. function pageLoad(sender, args){
  10. //Jquery Code
  11. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.