开发者

Why images of asp.net toggle button created with checkbox doesn't show inside updatepanel in webusercontrol?

Why images of asp.net toggle button created with checkbox doesn't show inside updatepanel i开发者_JS百科n webusercontrol ?


Because inside updatepanel you need to initialized it after every 'ajax' call.

var prm = Sys.WebForms.PageRequestManager.getInstance();    
prm.add_initializeRequest(InitializeRequest);
prm.add_endRequest(EndRequest);

function InitializeRequest(sender, args) {      
}

function EndRequest(sender, args) {
    InitToggleButton();
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜