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

            try {
                if (PublicParmValues.Any())
                {
                    this.PageSize = int.Parse(GetParmValue("PageSize", "10"));

                    this.PagerBelowContent = Convert.ToBoolean(GetParmValue("PagerBelowContent", "true"));

                    this.ShowPager = Convert.ToBoolean(GetParmValue("ShowPager", "true"));

                    this.EnableViewState = Convert.ToBoolean(GetParmValue("EnableViewState", "false"));

                    this.OrderBy = GetParmValue("OrderBy", "GoLiveDate  desc");

                    this.CSSSelectedPage = GetParmValue("CSSSelectedPage", "SelectedCurrentPager");

                    this.CSSPageListing = GetParmValue("CSSPageListing", "");

                    this.CSSPageFooter = GetParmValue("CSSPageFooter", "");
                }
            } catch (Exception ex) {
            }
        }
Example #2
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            try {
                if (PublicParmValues.Any())
                {
                    this.ContentType = (SummaryContentType)Enum.Parse(typeof(SummaryContentType), GetParmValue("ContentType", "Blog"), true);

                    SelectedCategories = new List <Guid>();

                    List <string> lstCategories = GetParmValueList("SelectedCategories");
                    foreach (string sCat in lstCategories)
                    {
                        if (!String.IsNullOrEmpty(sCat))
                        {
                            SelectedCategories.Add(new Guid(sCat));
                        }
                    }
                }
                if (SelectedCategories.Any())
                {
                    this.ContentType = SummaryContentType.SpecifiedCategories;
                }
            } catch (Exception ex) {
            }
        }
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            try {
                if (PublicParmValues.Any())
                {
                    //this.SnippetSlug = GetParmValue("SnippetSlug", "");
                    this.SnippetID       = new Guid(GetParmValue("SnippetID", Guid.Empty.ToString()));
                    this.EnableViewState = Convert.ToBoolean(GetParmValue("EnableViewState", "false"));
                }
            } catch (Exception ex) {
            }
        }
        protected override void OnPreRender(EventArgs e)
        {
            try {
                if (PublicParmValues.Any())
                {
                    CssClass = GetParmValue("CssClass", "");

                    CalendarHead = GetParmValue("CalendarHead", "");
                }
            } catch (Exception ex) {
            }

            base.OnPreRender(e);
        }
Example #5
0
        protected void LoadValues()
        {
            if (PublicParmValues.Any())
            {
                TakeTop = 3;

                try {
                    string sFoundVal = GetParmValue("TakeTop", String.Empty);

                    if (!string.IsNullOrEmpty(sFoundVal))
                    {
                        TakeTop = Convert.ToInt32(sFoundVal);
                    }
                } catch (Exception ex) { }
            }
        }
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            try {
                if (PublicParmValues.Any())
                {
                    this.CssClass = GetParmValue("CssClass", "");

                    this.EnableViewState = Convert.ToBoolean(GetParmValue("EnableViewState", "false"));

                    this.RenderHTMLWithID = Convert.ToBoolean(GetParmValue("RenderHTMLWithID", "false"));
                }
            } catch (Exception ex) {
            }
        }
        protected override void OnPreRender(EventArgs e)
        {
            try {
                if (PublicParmValues.Any())
                {
                    CssClass = GetParmValue("CssClass", "");

                    CSSStyle = GetParmValue("CSSStyle", "width: 300px; height: 100px;");

                    Hyperlink = GetParmValue("Hyperlink", "");

                    ScrollingFrame = Convert.ToBoolean(GetParmValue("ScrollingFrame", "true"));
                }
            } catch (Exception ex) {
            }

            base.OnPreRender(e);
        }
        protected override void OnPreRender(EventArgs e)
        {
            try {
                if (PublicParmValues.Any())
                {
                    OverrideCSS = GetParmValue("OverrideCSS", "");

                    CSSSelected = GetParmValue("CSSSelected", "");
                }
            } catch (Exception ex) {
            }

            if (!String.IsNullOrEmpty(OverrideCSS))
            {
                HtmlLink link = new HtmlLink();
                link.Href = OverrideCSS;
                link.Attributes.Add("rel", "stylesheet");
                link.Attributes.Add("type", "text/css");
                this.Page.Header.Controls.Add(link);
            }

            base.OnPreRender(e);
        }