UpdatePanel 与Jquery.Thickbox 失效解决办法

把thickbox.js文件中的

代码
// on page load call tb_init
$(document).ready( function (){   
    tb_init(
' a.thickbox, area.thickbox, input.thickbox ' ); // pass where to apply thickbox
    imgLoader  =   new  Image(); //  preload image
    imgLoader.src  =  tb_pathToImage;
});

 

替换成

代码
function  pageLoad(sender, args) {
    tb_init(
' a.thickbox, area.thickbox, input.thickbox ' );  // pass where to apply thickbox
    imgLoader  =   new  Image();  //  preload image
    imgLoader.src  =  tb_pathToImage;
 
// 可以在这写自己的JQ
}

 

 

你可能感兴趣的:(UpdatePanel 与Jquery.Thickbox 失效解决办法)