Beispiel #1
0
        public static void AddStyleSheetCached(Page Page, string ID, string href)
        {
            CDefault  DefaultPage = (CDefault)Page;
            Hashtable objCSSCache = null;

            if (DotNetNuke.Common.Globals.PerformanceSetting != DotNetNuke.Common.Globals.PerformanceSettings.NoCaching)
            {
                objCSSCache = (Hashtable)DataCache.GetCache("40FINGERS_CSS");
            }
            if (objCSSCache == null)
            {
                objCSSCache = new Hashtable();
            }

            if (objCSSCache.ContainsKey(ID) == false)
            {
                if (File.Exists(HttpContext.Current.Server.MapPath(href)))
                {
                    objCSSCache[ID] = href;
                }
                else
                {
                    objCSSCache[ID] = "";
                }
                if (DotNetNuke.Common.Globals.PerformanceSetting != DotNetNuke.Common.Globals.PerformanceSettings.NoCaching)
                {
                    DataCache.SetCache("40FINGERS_CSS", objCSSCache);
                }
            }
            if (!string.IsNullOrEmpty(objCSSCache[ID].ToString()))
            {
                DefaultPage.AddStyleSheet(ID, objCSSCache[ID].ToString());
            }
        }
Beispiel #2
0
        public void Types(string name, Type?fieldType, object expectedResult, bool isNullable, bool isList = false, bool listIsNullable = false, Type?graphType = null)
        {
            if (graphType == null && fieldType != null)
            {
                graphType = fieldType.GetGraphTypeFromType(isNullable, TypeMappingMode.OutputType);
                if (isList)
                {
                    graphType = typeof(ListGraphType <>).MakeGenericType(graphType);
                    if (!listIsNullable)
                    {
                        graphType = typeof(NonNullGraphType <>).MakeGenericType(graphType);
                    }
                }
            }
            var field = _graphType.Fields.Find(name);

            if (graphType == null)
            {
                field.ShouldBeNull();
                return;
            }
            field.ShouldNotBeNull();
            field.Type.ShouldBe(graphType);
            var obj = new CDefault();
            var mockResolveFieldContext = new Mock <IResolveFieldContext>(MockBehavior.Loose);

            mockResolveFieldContext.Setup(x => x.Source).Returns(obj);
            field.Resolver.ShouldNotBeNull();
            var ret = field.Resolver.Resolve(mockResolveFieldContext.Object);

            ret.ShouldBe(expectedResult);
        }
Beispiel #3
0
        private void Page_Prerender(object sender, EventArgs e)
        {
            CDefault page = (CDefault)sender;

            var lcs = page.GetAllControls().OfType <LiteralControl>().Where(c => c.Parent.ID == "lblContent" &&
                                                                            c.Parent.Parent.GetType().BaseType.FullName == "DotNetNuke.Modules.Html.HtmlModule");

            foreach (var item in lcs)
            {
                LiteralControl lc = (LiteralControl)item;
                lc.Text = TokenReplaceUtils.Replace(lc.Text);
            }

            var labels = page.GetAllControls().OfType <Label>().Where(c => c.ID == "lblText" &&
                                                                      c.Parent.GetType().BaseType.FullName == "DotNetNuke.UI.Skins.Controls.Text");

            foreach (var label in labels)
            {
                label.Text = TokenReplaceUtils.Replace(label.Text);
            }

            /*
             * var blogContents = page.GetAllControls().OfType<UserControl>().Where(c => c.ID == "vtContents"
             *             && c.Parent.GetType().BaseType.FullName == "DotNetNuke.Modules.Blog.Blog");
             *
             * foreach (var blog in blogContents)
             * {
             *  object template = Reflection.GetProperty(blog.GetType(), "Template", blog);
             *  object contents = Reflection.GetProperty(template.GetType(), "Contents", template);
             *
             *  string newContents = TokenReplaceUtils.Replace(contents as string);
             *  Reflection.SetProperty(template.GetType(), "Contents", template, new object[]{newContents});
             * }
             */
            var literalsPA = page.GetAllControls().OfType <LiteralControl>().Where(c => c.Parent.ID == "phProperty" &&
                                                                                   c.Parent.Parent.GetType().BaseType.FullName == "Ventrian.PropertyAgent.ViewProperty");

            foreach (var item in literalsPA)
            {
                LiteralControl lc = (LiteralControl)item;
                lc.Text = TokenReplaceUtils.Replace(lc.Text);
            }


            /*
             * var htmlFinder = new ControlFinder<HtmlModule>();
             * htmlFinder.FindChildControlsRecursive(page);
             * foreach (var html in htmlFinder.FoundControls)
             * {
             *  var literalFinder = new ControlFinder<DNNLabelEdit>();
             *  literalFinder.FindChildControlsRecursive(html);
             *  foreach (var item in literalFinder.FoundControls)
             *      {
             *      LiteralControl lc = (LiteralControl)item.Controls[0];
             *      lc.Text = TokenReplaceUtils.Replace(lc.Text);
             *      }
             * }
             */
        }
Beispiel #4
0
        /// <summary>
        /// Sets the Page Meta information for the TagDetail.ascx view.
        /// </summary>
        /// <param name="defaultPage"></param>
        /// <param name="objTerm"></param>
        /// <param name="modContext"></param>
        /// <param name="pageTitle"></param>
        /// <param name="description"></param>
        public static void SetTermPageMeta(CDefault defaultPage, TermInfo objTerm, ModuleInstanceContext modContext, string pageTitle, string description)
        {
            var title    = TruncateString(pageTitle + " - " + modContext.PortalSettings.PortalName, Constants.SeoTitleLimit, false);
            var content  = TruncateString(description, Constants.SeoDescriptionLimit, false);
            var link     = Links.ViewTagDetail(modContext, modContext.TabId, objTerm.Name);
            var keyWords = objTerm.Name;

            SetPageMetaAndOpenGraph(defaultPage, modContext, title, content, keyWords, link);
        }
Beispiel #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="defaultPage"></param>
        /// <param name="modContext"></param>
        /// <param name="pageTitle"></param>
        /// <param name="description"></param>
        /// <param name="link"></param>
        /// <param name="prevLink"></param>
        /// <param name="nextLink"></param>
        public static void SetTagsPageMeta(CDefault defaultPage, ModuleInstanceContext modContext, string pageTitle, string description, string link, string prevLink, string nextLink)
        {
            var title    = TruncateString(pageTitle + " - " + modContext.PortalSettings.PortalName, Constants.SeoTitleLimit, false);
            var content  = TruncateString(description, Constants.SeoDescriptionLimit, false);
            var keyWords = defaultPage.KeyWords;

            SetPageMetaAndOpenGraph(defaultPage, modContext, title, content, keyWords, link);
            SetPagingMeta(defaultPage, prevLink, nextLink);
        }
Beispiel #6
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="defaultPage"></param>
        /// <param name="modContext"></param>
        /// <remarks>In this method we don't really want to override the dnn stuff, we simply want to add the OG stuff.</remarks>
        public static void SetHomePageMeta(CDefault defaultPage, ModuleInstanceContext modContext)
        {
            var link     = Links.Home(modContext.TabId);
            var content  = defaultPage.Description;
            var title    = defaultPage.Title;
            var keyWords = defaultPage.KeyWords;

            SetPageMetaAndOpenGraph(defaultPage, modContext, title, content, keyWords, link);
        }
Beispiel #7
0
        /// <summary>
        /// This method is meant to update SEO related meta information in the DotNetNuke base page. It is passed different information based on which specific 'page' in the module is being viewed.
        /// </summary>
        /// <param name="defaultPage"></param>
        /// <param name="modContext"></param>
        /// <param name="title"></param>
        /// <param name="content"></param>
        /// <param name="keyWords"></param>
        /// <param name="link"></param>
        private static void SetPageMetaAndOpenGraph(CDefault defaultPage, ModuleInstanceContext modContext, string title, string content, string keyWords, string link)
        {
            defaultPage.Title = title;

            var meta = new HtmlMeta();

            meta.Attributes.Add("property", "og:title");
            meta.Attributes.Add("content", title);
            defaultPage.Header.Controls.Add(meta);

            content = StripTagsCharArray(HttpUtility.HtmlDecode(content));
            var description = TruncateString(content, Constants.SeoDescriptionLimit, false);

            if (description.Length > 0)
            {
                defaultPage.Description = description;

                meta = new HtmlMeta();
                meta.Attributes.Add("property", "og:description");
                meta.Attributes.Add("content", description);
                defaultPage.Header.Controls.Add(meta);
            }

            meta = new HtmlMeta();
            meta.Attributes.Add("property", "og:type");
            meta.Attributes.Add("content", "article");
            defaultPage.Header.Controls.Add(meta);

            if (keyWords.Length > 0)
            {
                defaultPage.KeyWords = keyWords;

                meta = new HtmlMeta();
                meta.Attributes.Add("property", "article:tag");
                meta.Attributes.Add("content", keyWords);
                defaultPage.Header.Controls.Add(meta);
            }

            meta = new HtmlMeta();
            meta.Attributes.Add("property", "og:url");
            meta.Attributes.Add("content", link);
            defaultPage.Header.Controls.Add(meta);

            meta = new HtmlMeta();
            meta.Attributes.Add("property", "og:site_name");
            meta.Attributes.Add("content", modContext.PortalSettings.PortalName);
            defaultPage.Header.Controls.Add(meta);

            if (modContext.PortalSettings.LogoFile.Trim().Length > 0)
            {
                meta = new HtmlMeta();
                meta.Attributes.Add("property", "og:image");
                meta.Attributes.Add("content", "http://" + modContext.PortalAlias.HTTPAlias + "/Portals/" + modContext.PortalId + "/" + modContext.PortalSettings.LogoFile);
                defaultPage.Header.Controls.Add(meta);
            }
        }
Beispiel #8
0
        /// <summary>
        ///  Sets the Page Meta information for the Question.ascx view.
        /// </summary>
        /// <param name="defaultPage"></param>
        /// <param name="objQuestion"></param>
        /// <param name="modContext"></param>
        /// <remarks>Need to wire in page to accept page param in URL.</remarks>
        public static void SetQuestionPageMeta(CDefault defaultPage, QuestionInfo objQuestion, ModuleInstanceContext modContext)
        {
            var title    = TruncateString(objQuestion.Title + " - " + modContext.PortalSettings.PortalName, Constants.SeoTitleLimit, false);
            var content  = TruncateString(objQuestion.Body, Constants.SeoDescriptionLimit, false);
            var link     = Links.ViewQuestion(objQuestion.PostId, objQuestion.Title, modContext.PortalSettings.ActiveTab, modContext.PortalSettings);
            var keyWords = "";
            var keyCount = 1;
            var count    = keyCount;

            foreach (var term in objQuestion.Terms.TakeWhile(term => count <= Constants.SeoKeywordsLimit))
            {
                keyWords += "," + term.Name;
                keyCount += 1;
            }

            SetPageMetaAndOpenGraph(defaultPage, modContext, title, content, keyWords, link);
        }
Beispiel #9
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="defaultPage"></param>
        /// <param name="prevLink"></param>
        /// <param name="nextLink"></param>
        private static void SetPagingMeta(CDefault defaultPage, string prevLink, string nextLink)
        {
            if (prevLink != null)
            {
                var linkPrev = new HyperLink();
                linkPrev.Attributes.Add("rel", "prev");
                linkPrev.NavigateUrl = prevLink;
                defaultPage.Header.Controls.Add(linkPrev);
            }

            if (nextLink != null)
            {
                var linkNext = new HyperLink();
                linkNext.Attributes.Add("rel", "next");
                linkNext.NavigateUrl = nextLink;
                defaultPage.Header.Controls.Add(linkNext);
            }
        }
        public static void Start()
        {
            INormal inormal = new CNormal();

            inormal.Normal();

            //GCHandle gch = GCHandle.Alloc(inormal, GCHandleType.Pinned);
            //IntPtr pObj = gch.AddrOfPinnedObject();
            //WriteLine(pObj.ToString());

            IDefaultMethod idefault = new CDefault();

            idefault.Default();

            IDefaultMethod idefaultOwnimp = new CDefaultOwnImp();

            idefaultOwnimp.Default();

            // 用 ShowInterfaceMapping 来实现接口默认方法
            //ShowInterfaceMapping(typeof(CNormal), typeof(INormal));
            //ShowInterfaceMapping(typeof(CDefault), typeof(IDefaultMethod));
            //ShowInterfaceMapping(typeof(CDefaultOwnImp), typeof(IDefaultMethod));
        }
    //public void BindPageDetail(int id)
    //{

    //    try
    //    {
    //        DotNetNuke.Framework.CDefault p = (DotNetNuke.Framework.CDefault)this.Page;

    //        DataSet ds = new DataSet();
    //        ds = null;
    //        objDAEntities.PageTypeId = id;
    //        ds = (DataSet)objBusinessLogic.GetBannerPageContentDetail(objDAEntities);
    //        /*if (ds.Tables[0].Rows.Count > 0)
    //        {
    //            imgbanner.ImageUrl = string.IsNullOrEmpty(ds.Tables[0].Rows[0]["ImageUrl"].ToString()) ? CommonFn.DefaultInnerpageBanner : ds.Tables[0].Rows[0]["ImageUrl"].ToString();
    //        }
    //        else
    //        {
    //            imgbanner.ImageUrl = CommonFn.DefaultInnerpageBanner;
    //        }*/
    //        if (ds.Tables[1].Rows.Count > 0)
    //        {
    //            if (Convert.ToString(ds.Tables[1].Rows[0]["Content"]).Length>0)
    //            {
    //                innerParagraph.Visible = true;
    //                innerParagraph.InnerHtml = Convert.ToString(ds.Tables[1].Rows[0]["Content"]);
    //            }
    //            else
    //            {
    //                innerParaDiv.Visible = false;
    //            }
    //            p.Title = ds.Tables[1].Rows[0]["PageTitle"].ToString();
    //            p.KeyWords = ds.Tables[1].Rows[0]["PageKeywords"].ToString();
    //            p.Description = ds.Tables[1].Rows[0]["PageDescription"].ToString();
    //        }

    //    }
    //    catch (Exception ex)
    //    {
    //    }
    //}

    public void BindSpecialties(int id)
    {
        try
        {
            DataSet ds = new DataSet();
            ds = null;
            ds = (DataSet)objBusinessLogic.GetDoctoDetailbySID(id);

            if (!string.IsNullOrEmpty(Convert.ToString(ds.Tables[0].Rows[0]["keyword"])))
            {
                CDefault tp = (CDefault)this.Page;
                tp.KeyWords = Convert.ToString(ds.Tables[0].Rows[0]["keyword"]);
            }
            //string _specialtyName = String.Empty;
            if (Convert.ToString(ds.Tables[0].Rows[0]["CategoryName"]) == "Patient Facilities")
            {
                if (ds.Tables[0].Rows.Count > 0)
                {
                    h3header1.InnerHtml = Convert.ToString(ds.Tables[0].Rows[0]["SpecialtyName"]);
                    h3subheader.Visible = false;
                    //_specialtyName = GetBanner(ds);
                    //if (!string.IsNullOrEmpty(Convert.ToString(ds.Tables[0].Rows[0]["BannerImage"])))
                    //{
                    //    imgAbout.ImageUrl = Convert.ToString(ds.Tables[0].Rows[0]["BannerImage"]);
                    //}
                    //else
                    //{
                    //    imgAbout.Visible = false;
                    //}
                    imgAbout.Visible = false;
                    // aboutheader.Visible = false;
                    PAboutSD.InnerHtml   = Convert.ToString(ds.Tables[0].Rows[0]["About"]);
                    leftPanelTab.Visible = false;
                }
            }
            else
            {
                //leftPanelTab.Visible = true;
                if (ds.Tables[0].Rows.Count > 0)
                {
                    h3header1.InnerHtml = Convert.ToString(ds.Tables[0].Rows[0]["SpecialtyName"]);
                    //_specialtyName = GetBanner(ds);
                    if (!string.IsNullOrEmpty(Convert.ToString(ds.Tables[0].Rows[0]["BannerImage"])))
                    {
                        imgAbout.ImageUrl = Convert.ToString(ds.Tables[0].Rows[0]["BannerImage"]);
                    }
                    else
                    {
                        imgAbout.Visible = false;
                    }
                    objDAEntities.SpecialtyId = Convert.ToInt32(ds.Tables[0].Rows[0]["SpecialtyId"]);
                    PAboutSD.InnerHtml        = Convert.ToString(ds.Tables[0].Rows[0]["About"]);
                    PFacilities.InnerHtml     = Convert.ToString(ds.Tables[0].Rows[0]["Facilities"]);
                }
                if (ds.Tables[1].Rows.Count > 0)
                {
                    datalistOurSpecialtyDs.DataSource = ds.Tables[1];
                    datalistOurSpecialtyDs.DataBind();
                }
            }
            lblAboutmsg.Visible      = (PAboutSD.InnerHtml.Length > 0) ? false : true;
            lblFacilitiesMsg.Visible = (PFacilities.InnerHtml.Length > 0) ? false : true;
            lblNoRec.Visible         = (datalistOurSpecialtyDs.Items.Count > 0) ? false : true;



            DotNetNuke.Framework.CDefault p = (DotNetNuke.Framework.CDefault) this.Page;
            if (!string.IsNullOrEmpty(h3header1.InnerHtml))
            {
                p.Title = h3header1.InnerHtml + " | Jaslok Hospital";
            }
            else
            {
                p.Title = "Specialties | Jaslok Hospital";
            }
            p.KeyWords = Convert.ToString(ds.Tables[0].Rows[0]["keyword"]);
            // p.Description = ds.Tables[1].Rows[0]["PageDescription"].ToString();
        }
        catch (Exception ex)
        {
        }
    }
Beispiel #12
0
 public static void SetBadgesPageMeta(CDefault defaultPage, ModuleInstanceContext modContext, string title, string description, string link)
 {
     SetPageMetaAndOpenGraph(defaultPage, modContext, title, description, "", link);
 }
Beispiel #13
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="defaultPage"></param>
        /// <param name="modContext"></param>
        /// <param name="title"></param>
        /// <param name="description"></param>
        public static void SetPrivilegePageMeta(CDefault defaultPage, ModuleInstanceContext modContext, string title, string description)
        {
            var link = Links.ViewPrivilege(modContext, title);

            SetPageMetaAndOpenGraph(defaultPage, modContext, title, description, "", link);
        }
        private void RewriteUrl(HttpApplication app, out string portalAlias)
        {
            PortalAliasInfo objPortalAlias;
            RewriterAction  action;

            UrlRewriteModuleUtils.RewriteUrl(app, out portalAlias, out objPortalAlias, out action);

            // save OriginalUrl & PortalId for Logging
            if (app != null)
            {
                app.Context.Items.Add("UrlRewrite:OriginalUrl", app.Request.Url.AbsoluteUri);
                app.Context.Items.Add("UrlRewrite:PortalId", (objPortalAlias == null ? -1 : objPortalAlias.PortalID));
            }

            if (action.DoNotFound)
            {
                //string strURL = "ErrorPage.aspx?status=404&error=CustomRule";
                app.Response.Clear();
                app.Response.StatusCode = 404;
                app.Response.Status     = "404 Not Found";
                app.Response.AppendHeader("X-OpenUrlRewriter-404-Raison", action.Raison);

                int TabId404 = PortalController.GetPortalSettingAsInteger(UrlRewiterSettings.ErrorPage404Setting, objPortalAlias.PortalID, -1);
                if (TabId404 != -1)
                {
                    //TabInfo errTab = tc.GetTab(errTabId, result.PortalId, true);
                    string strURL = Globals.glbDefaultPage + "?TabId=" + TabId404.ToString();
                    var    ps     = new PortalSettings(TabId404, objPortalAlias);
                    app.Context.Items.Add("PortalSettings", ps);

                    if (app.Context.User == null)
                    {
                        app.Context.User = Thread.CurrentPrincipal;
                    }
                    app.Response.TrySkipIisCustomErrors = true;
                    //spoof the basePage object so that the client dependency framework
                    //is satisfied it's working with a page-based handler
                    IHttpHandler spoofPage = new CDefault();
                    app.Context.Handler = spoofPage;
                    app.Context.Server.Transfer("~/" + strURL, true);
                }
                else
                {
                    const string errorPageHtmlHeader = @"<html><head><title>404 Page not found </title></head><body>";
                    const string errorPageHtmlFooter = @"</body></html>";
                    var          errorPageHtml       = new StringWriter();
                    errorPageHtml.Write("<br> 404 Fle not found ");
                    errorPageHtml.Write("<br> Raison : " + action.Raison);
                    errorPageHtml.Write("<div style='font-weight:bolder'>Administrators</div>");
                    errorPageHtml.Write("<div>Change this message by configuring a specific 404 Error Page.</div>");
                    errorPageHtml.Write(string.Format("<a href=\"//{0}\">Goto website</a>", objPortalAlias.HTTPAlias));
                    app.Response.Write(errorPageHtmlHeader);
                    app.Response.Write(errorPageHtml.ToString());
                    app.Response.Write(errorPageHtmlFooter);
                }

                app.Response.End();
            }
            else if (action.DoRedirect)
            {
                app.Context.Items.Add("UrlRewrite:RedirectUrl", action.RedirectUrl);
                app.Response.AppendHeader("X-Redirect-Reason", action.Raison);
                if (action.Status == 302)
                {
                    app.Response.Redirect(action.RedirectUrl, true);
                }
                else
                {
                    app.Response.Status = "301 Moved Permanently";
                    app.Response.AddHeader("Location", action.RedirectUrl);
                    app.Response.End();
                }
            }
            else if (action.DoReWrite)
            {
                RewriterUtils.RewriteUrl(app.Context, action.RewriteUrl);
            }
        }
Beispiel #15
0
        private void ProcessStylesheets(bool includeModuleCss)
        {
            bool      blnUpdateCache = false;
            CDefault  DefaultPage    = (CDefault)Page;
            string    ID;
            Hashtable objCSSCache = null;

            if (Host.PerformanceSetting != Common.Globals.PerformanceSettings.NoCaching)
            {
                objCSSCache = (Hashtable)DataCache.GetCache("CSS");
            }
            if (objCSSCache == null)
            {
                objCSSCache = new Hashtable();
            }
            ID = Globals.CreateValidID(ContainerPath);
            if (objCSSCache.ContainsKey(ID) == false)
            {
                if (File.Exists(Server.MapPath(ContainerPath) + "container.css"))
                {
                    objCSSCache[ID] = ContainerPath + "container.css";
                }
                else
                {
                    objCSSCache[ID] = "";
                }
                blnUpdateCache = true;
            }
            if (objCSSCache[ID] != null && !String.IsNullOrEmpty(objCSSCache[ID].ToString()))
            {
                DefaultPage.AddStyleSheet(ID, objCSSCache[ID].ToString());
            }
            ID = Globals.CreateValidID(ContainerSrc.Replace(".ascx", ".css"));
            if (objCSSCache.ContainsKey(ID) == false)
            {
                if (File.Exists(Server.MapPath(ContainerSrc.Replace(".ascx", ".css"))))
                {
                    objCSSCache[ID] = ContainerSrc.Replace(".ascx", ".css");
                }
                else
                {
                    objCSSCache[ID] = "";
                }
                blnUpdateCache = true;
            }
            if (objCSSCache[ID] != null && !String.IsNullOrEmpty(objCSSCache[ID].ToString()))
            {
                DefaultPage.AddStyleSheet(ID, objCSSCache[ID].ToString());
            }
            if (includeModuleCss)
            {
                string controlSrc = ModuleConfiguration.ModuleControl.ControlSrc;
                string folderName = ModuleConfiguration.DesktopModule.FolderName;
                ID = Globals.CreateValidID(Common.Globals.ApplicationPath + "/DesktopModules/" + folderName);
                if (objCSSCache.ContainsKey(ID) == false)
                {
                    objCSSCache[ID] = "";
                    if (File.Exists(Server.MapPath(Common.Globals.ApplicationPath + "/DesktopModules/" + folderName + "/module.css")))
                    {
                        objCSSCache[ID] = Common.Globals.ApplicationPath + "/DesktopModules/" + folderName + "/module.css";
                    }
                    else
                    {
                        if (controlSrc.ToLower().EndsWith(".ascx"))
                        {
                            if (File.Exists(Server.MapPath(Common.Globals.ApplicationPath + "/" + controlSrc.Substring(0, controlSrc.LastIndexOf("/") + 1)) + "module.css"))
                            {
                                objCSSCache[ID] = Common.Globals.ApplicationPath + "/" + controlSrc.Substring(0, controlSrc.LastIndexOf("/") + 1) + "module.css";
                            }
                        }
                    }
                    blnUpdateCache = true;
                }
                if (objCSSCache.ContainsKey(ID) && !string.IsNullOrEmpty(objCSSCache[ID].ToString()))
                {
                    DefaultPage.AddStyleSheet(ID, objCSSCache[ID].ToString(), true);
                }
            }
            if (Host.PerformanceSetting != Common.Globals.PerformanceSettings.NoCaching)
            {
                if (blnUpdateCache)
                {
                    DataCache.SetCache("CSS", objCSSCache);
                }
            }
        }