Hi,
The main problem area with your code is that you are using jQuerys
ready method[
^] with ASP.NET's UpdatePanel control.
This means, your jQuery method will run the 1st time your page is loaded (and the DOM is ready), but this event will not fire when a partial postback occurs.
There are a few methods to handle this, most involve wiring up the WebForms PageRequestManagers
endRequest Event[
^] to the jQuery's ready function.
In your instance, this would look something like:
function doCarousel(){
$('#mycarousel').jcarousel();
}
$(document).ready(doCarousel);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(doCarousel);
A good starting point to learn more about this approach, is contained in the following article:
Working with jQuery within the ASP.NET UpdatePanel[
^]
... hope it helps.