动态加载用户控件遇到的问题
我在一个用户控件里面放了一个PlaceHolder,在这个用户控件里面我定义了一个方法AddControl,用来往这个PlaceHolder中加控件。如果动态加入的这个控件中没有UpdatePanel,页面可以正常运行,但是如果动态加入的控件中有UpdatePanel,则会报错Cannot unregister UpdatePanel with ID XXX since it was not registered with the ScriptManager.This might occur if the UpdatePanel was removed from the control tree and latter added again。请问大家有没有办法解决。非常感谢~