protected override void OnInit(EventArgs e) { if (!HttpContext.Current.Request.Url.LocalPath.ToLower().EndsWith("installwizard.aspx")) { Localization.SetThreadCultures(PageCulture, PortalSettings); } AJAX.AddScriptManager(this); var dnncoreFilePath = HttpContext.Current.IsDebuggingEnabled ? "~/js/Debug/dnncore.js" : "~/js/dnncore.js"; ClientResourceManager.RegisterScript(this, dnncoreFilePath); base.OnInit(e); }
/// <inheritdoc/> protected override void OnInit(EventArgs e) { var isInstallPage = HttpContext.Current.Request.Url.LocalPath.ToLowerInvariant().Contains("installwizard.aspx"); if (ScriptManager.GetCurrent(this) == null) { AJAX.AddScriptManager(this, !isInstallPage); } var dnncoreFilePath = HttpContext.Current.IsDebuggingEnabled ? "~/js/Debug/dnncore.js" : "~/js/dnncore.js"; ClientResourceManager.RegisterScript(this, dnncoreFilePath); base.OnInit(e); }