I have the same problem, when I put those lines in my Page_Load the site show me this error message
DotNetNuke.Services.Exceptions.ModuleLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The EnableScriptGlobalization property cannot be changed during async postbacks or after the Init event. at System.Web.UI.ScriptManager.set_EnableScriptGlobalization(Boolean value) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) at DotNetNuke.Framework.Reflection.SetProperty(Type Type, String PropertyName, Object Target, Object[] Args) at DotNetNuke.Framework.AJAX.SetScriptManagerProperty(Control objControl, String PropertyName, Object[] Args) at DotNetNuke.Framework.AJAX.SetScriptManagerProperty(Page objPage, String PropertyName, Object[] Args) at TS.Modules.EditarCheque.ViewEditarCheque.Page_Load(Object sender, EventArgs e) in e:\Doctor\DotNetNuke\DesktopModules\EditarCheque\ViewEditarCheque.ascx.cs:line 97 --- End of inner exception stack trace ---
How can I solve it?? Thanks