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.
why cant you try $.noconflict()
i am writing a series of tutorial on Jquery and asp.net . it will be good if u can help on that.. my blog address is
http://satish1v.wordpress.com/
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.noConflict();
jQuery(document).ready(function() {
jQuery(‘a[rel*=facebox]’).facebox() ;
});
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