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();
}
精彩评论