Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                Page.Title           = "eKnowID | Home | Online Background Checks, Criminal Records Search, Employment Verification, Tenant Check and more @ eKnowID";
                Page.MetaKeywords    = "eKnowID, background check, background checks, employment verification, tenant check, self check, criminal records, where to get background check, online background check, background check online, record check";
                Page.MetaDescription = "Background checks that you can now easily afford. eKnowID makes background checks easy on the pocket and as simple as 1-2-3.";

                //Set Content of testimonials,Blog
                CMSHomePage cmsHomePage = CMSHomePageHelper.GetCMSHomePageContent(false);
                if (SessionWrapper.LoggedUser != null)
                {
                    if ((SessionWrapper.LoggedUser.Email == Constant.CONST_CMS_ADMIN_USERID) && (SessionWrapper.CMSHomePage != null && SessionWrapper.CMSHomePage.PreviewFlag == true))
                    {
                        cmsHomePage.Blog_Header                   = !string.IsNullOrEmpty(SessionWrapper.CMSHomePage.Blog_Header) ? SessionWrapper.CMSHomePage.Blog_Header : cmsHomePage.Blog_Header;
                        cmsHomePage.Blog_Content                  = !string.IsNullOrEmpty(SessionWrapper.CMSHomePage.Blog_Content)? SessionWrapper.CMSHomePage.Blog_Content : cmsHomePage.Blog_Content;
                        cmsHomePage.testimonials_content          = !string.IsNullOrEmpty(SessionWrapper.CMSHomePage.testimonials_content) ? SessionWrapper.CMSHomePage.testimonials_content : cmsHomePage.testimonials_content;
                        cmsHomePage.testimonials_Sign_Name        = !string.IsNullOrEmpty(SessionWrapper.CMSHomePage.testimonials_Sign_Name) ? SessionWrapper.CMSHomePage.testimonials_Sign_Name : cmsHomePage.testimonials_Sign_Name;
                        cmsHomePage.testimonials_Sign_CompanyName = !string.IsNullOrEmpty(SessionWrapper.CMSHomePage.testimonials_Sign_CompanyName) ? SessionWrapper.CMSHomePage.testimonials_Sign_CompanyName : cmsHomePage.testimonials_Sign_CompanyName;
                        cmsHomePage.testimonials_imageName        = !string.IsNullOrEmpty(SessionWrapper.CMSHomePage.testimonials_imageName) ? SessionWrapper.CMSHomePage.testimonials_imageName : cmsHomePage.testimonials_imageName;
                        cmsHomePage.YoutubeSrc = !string.IsNullOrEmpty(SessionWrapper.CMSHomePage.YoutubeSrc) ? SessionWrapper.CMSHomePage.YoutubeSrc : cmsHomePage.YoutubeSrc;
                    }
                }

                setTestimonialsBlogContent(cmsHomePage);
            }
            catch { }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                CMSHomePage cmsHomePage = CMSHomePageHelper.GetCMSHomePageContent(false);
                if (SessionWrapper.LoggedUser != null)
                {
                    if ((SessionWrapper.LoggedUser.Email == Constant.CONST_CMS_ADMIN_USERID) && (SessionWrapper.CMSHomePage != null && SessionWrapper.CMSHomePage.PreviewFlag == true))
                    {
                        cmsHomePage.YoutubeSrc = SessionWrapper.CMSHomePage.YoutubeSrc != null ? SessionWrapper.CMSHomePage.YoutubeSrc : cmsHomePage.YoutubeSrc;
                    }
                }

                iframeYoutube.Attributes.Add("src", cmsHomePage.YoutubeSrc + "&autoplay=1");
            }
            catch { }
        }