JQuery problems with ASP.NET AJAX UpdatePanel

I recently started to use JQuery on an ASP.NET 3.5 project. The JQuery worked fine until the first async postback event when it would then stop working.
The postback event seems to conflict with the JQUery Ready Function. In order to resolve this you should move all affected code to within a new function called function pageLoad() { }

This will solve all of the conflicts and ensure that JQuery works with the UpdatePanel.

NOTE: This AJAX conflict also occurs with Infragistics WARP controls.

4 thoughts on “JQuery problems with ASP.NET AJAX UpdatePanel

  1. Hi Satish,

    Thanks for the suggestion. I just tried that and it did not work :(. Thankfully the orginal jQuery via pageLoad still works :)

    Here is the code I tried based on your suggestion.


    jQuery(document).ready(function() {
    jQuery(‘a[rel*=facebox]’).facebox() ;

  2. Hi, I’m having the same problem using JQuery with ASP.NET UpdatePanel. Would you mind telling me exactly how you add the pageLoad() function ?? I’m kinda new to JavaScript. Thanks very much

Leave a Reply to connormurphy Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s