protected virtual void SetupCss()
        {
            // older skins have this
            StyleSheet stylesheet = (StyleSheet)Page.Master.FindControl("StyleSheet");

            if (stylesheet != null)
            {
                if (stylesheet.FindControl("blogcss") == null)
                {
                    Literal cssLink = new Literal();
                    cssLink.ID   = "blogcss";
                    cssLink.Text = String.Format("\n<link href='{0}blogmodule.css' type='text/css' rel='stylesheet' media='screen' />", SiteUtils.GetSkinBaseUrl());

                    stylesheet.Controls.Add(cssLink);
                }

                if (stylesheet.FindControl("aspcalendar") == null)
                {
                    Literal cssLink = new Literal();
                    cssLink.ID   = "aspcalendar";
                    cssLink.Text = String.Format("\n<link href='{0}aspcalendar.css' type='text/css' rel='stylesheet' media='screen' />", SiteUtils.GetSkinBaseUrl());

                    stylesheet.Controls.Add(cssLink);
                }
            }
        }
        private void SetupCss()
        {
            // older skins have this
            StyleSheet stylesheet = (StyleSheet)Page.Master.FindControl("StyleSheet");

            if (stylesheet != null)
            {
                if (stylesheet.FindControl("rsscss") == null)
                {
                    Literal cssLink = new Literal();
                    cssLink.ID   = "rsscss";
                    cssLink.Text = String.Format("\n<link href='{0}rssmodule.css' type='text/css' rel='stylesheet' media='screen' />", SiteUtils.GetSkinBaseUrl());

                    stylesheet.Controls.Add(cssLink);
                }
            }
        }
示例#3
0
        protected virtual void SetupCss()
        {
            // older skins have this
            StyleSheet stylesheet = (StyleSheet)Page.Master.FindControl("StyleSheet");

            if (stylesheet != null)
            {
                if (stylesheet.FindControl("stylewebstore") == null)
                {
                    Literal cssLink = new Literal();
                    cssLink.ID   = "stylewebstore";
                    cssLink.Text = "\n<link href='"
                                   + SiteUtils.GetSkinBaseUrl()
                                   + "stylewebstore.css' type='text/css' rel='stylesheet' media='screen' />";

                    stylesheet.Controls.Add(cssLink);
                }
            }
        }
        private void SetupCss()
        {
            // older skins have this
            StyleSheet stylesheet = (StyleSheet)Page.Master.FindControl("StyleSheet");

            if (stylesheet != null)
            {
                if (stylesheet.FindControl("mpdatacalendarcss") == null)
                {
                    Literal cssLink = new Literal();
                    cssLink.ID   = "mpdatacalendarcss";
                    cssLink.Text = "\n<link href='"
                                   + SiteUtils.GetSkinBaseUrl()
                                   + "mpdatacalendar.css' type='text/css' rel='stylesheet' media='screen' />";

                    stylesheet.Controls.Add(cssLink);
                }
            }
        }