1
Vote

Issue Fixed with Lightbox linkbutton in Atlas UpdatePanel

description

hi,guys!
 
this is my a function in my pagebase.js ;
After asyncpostback, ,the lightbox still work fine ;
 
if (typeof(Sys) != 'undefined'){
if (typeof(Sys.WebForms.PageRequestManager)!= 'undefined'){
   var prm = Sys.WebForms.PageRequestManager.getInstance();
 
   prm.add_beginRequest(BeginRequestHandler);
   prm.add_endRequest(EndRequestHandler);

   if (typeof(initLightbox) != 'undefined'){
       prm.add_endRequest(ReInitLightBox_EndRequestHandler);
   }   
}

function ReInitLightBox_EndRequestHandler(sender, args){
   if (args.get_error() == null){
       initLightbox();
   }
}
}

comments

maxdiable wrote Nov 7, 2007 at 4:23 PM

how to use this code ?
in a pages aspx ?

please

wrote Feb 13, 2013 at 9:54 PM