I am trying to integrate prettyphoto to have a video lightbox (with a youtube video) inside an asp.net updatepanel that does a postback before the lightbox is loaded. The code is perfectly working if it is put outside the updatepanel.
Bascically my aspx page is a child page that inherits from a masterpage; inside I have an updatepanel with two panels, one of them is initially not visible and it contains the ligthbox :
I have a button inside the updatepanel that if pressed makes the pnlVideoLightbox visible. Then I just click on the thumbnail that should fire the lightbox but the browser redirects to the youtube website instead of firing the JQuery code.