Posted By

delikassap on 01/31/10


panel jquery aspnet update updatepanel

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Jquery Code in ASP.NET UpdatePanel solution

 / Published in: jQuery

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.

  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
Posted By: shibbard on February 19, 2010

I use both. Document.ready if i want to do something only on first page load or refresh, and pageload for ajax partial updates.


You need to login to post a comment.