Exemple #1
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            if (Host.EnableCustomModuleCssClass)
            {
                string moduleName = ModuleControl.ModuleContext.Configuration.DesktopModule.ModuleName;
                if (moduleName != null)
                {
                    moduleName = Globals.CleanName(moduleName);
                }
                Attributes.Add("class", string.Format("DNNModuleContent Mod{0}C", moduleName));
            }
        }