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()
By: satish1v on 14 November, 2008
at 3:50 pm
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/
By: satish1v on 14 November, 2008
at 3:51 pm
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() ;
});
By: connormurphy on 14 November, 2008
at 8:47 pm
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
By: Alex on 3 July, 2009
at 7:10 am