private static void PageLoadHandler(object sender, EventArgs e) { WebUtility.LoadConfigPageContent(true); if (((Page)sender).IsPostBack) { AutoEncryptControlValueHelper.DecryptControlsValue( ConfigSectionFactory.GetPageExtensionSection().AutoEncryptControlIDs.Split(new char[] { ',', ';' }, StringSplitOptions.RemoveEmptyEntries), (Page)sender); } }
private void page_PreRenderComplete(object sender, EventArgs e) { RegisterDefaultNameTable(); AutoEncryptControlValueHelper.EncryptControlsValue( ConfigSectionFactory.GetPageExtensionSection().AutoEncryptControlIDs.Split(new char[] { ',', ';' }, StringSplitOptions.RemoveEmptyEntries), (Page)sender); PerformanceMonitorHelper.GetDefaultMonitor().WriteExecutionDuration("PageContentModule-RecursiveTranslate", () => TranslatorControlHelper.RecursiveTranslate((Page)sender)); DeluxeNameTableContextCache.Instance.RegisterNameTable((Page)sender); ((Page)sender).ClientScript.RegisterClientScriptBlock(this.GetType(), "DeluxeApplicationPath", string.Format("var _DeluxeApplicationPath = \"{0}\";", HttpContext.Current.Request.ApplicationPath), true); }