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 { }
        }
        public static bool SetPreviewHomePageContent(string TestimonialsContent, string TestimonialsSignName, string TestimonialsSignComapnyName, string BlogHeader, string BlogContent, string YouTubeSRC, string TestimonialsImage, bool previewFlag)
        {
            bool flag = true;

            try
            {
                TestimonialsContent         = TestimonialsContent.Replace("¤", "'");
                TestimonialsSignName        = TestimonialsSignName.Replace("¤", "'");
                TestimonialsSignComapnyName = TestimonialsSignComapnyName.Replace("¤", "'");
                BlogHeader  = BlogHeader.Replace("¤", "'");
                BlogContent = BlogContent.Replace("¤", "'");

                SessionWrapper.CMSHomePage                               = new CMSHomePage();
                SessionWrapper.CMSHomePage.PreviewFlag                   = previewFlag == true?true:false;
                SessionWrapper.CMSHomePage.testimonials_content          = TestimonialsContent;
                SessionWrapper.CMSHomePage.testimonials_Sign_Name        = TestimonialsSignName;
                SessionWrapper.CMSHomePage.testimonials_Sign_CompanyName = TestimonialsSignComapnyName;
                SessionWrapper.CMSHomePage.Blog_Header                   = BlogHeader;
                SessionWrapper.CMSHomePage.Blog_Content                  = BlogContent;
                SessionWrapper.CMSHomePage.YoutubeSrc                    = YouTubeSRC;
                SessionWrapper.CMSHomePage.testimonials_imageName        = TestimonialsImage;

                if (previewFlag == false)
                {
                    CMSHomePageHelper.SetCMSHomePageContent(SessionWrapper.CMSHomePage, previewFlag);
                }
            }
            catch { flag = false; }
            return(flag);
        }
        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 { }
        }