Carrotware.CMS.UI.Controls.BaseNavSelHeaded.OnPreRender C# (CSharp) Method

OnPreRender() protected method

protected OnPreRender ( System e ) : void
e System
return void
        protected override void OnPreRender(System.EventArgs e)
        {
            if (this.PublicParmValues.Any()) {
                string sTmp = String.Empty;
                try {
                    sTmp = GetParmValue("MetaDataTitle", String.Empty);
                    if (!String.IsNullOrEmpty(sTmp)) {
                        this.MetaDataTitle = sTmp;
                    }

                    sTmp = GetParmValue("HeadWrapTag", TagType.H2.ToString());
                    if (!String.IsNullOrEmpty(sTmp)) {
                        this.HeadWrapTag = (TagType)Enum.Parse(typeof(TagType), sTmp, true);
                    }
                } catch (Exception ex) {
                }
            }

            base.OnPreRender(e);
        }