Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        caseStudies = caseStudeiesRepository.GetCaseStudiesPresentation(GeneralExtensions.GetQueryStringId());

        //To Bind Case Studies Tab Titles
        repCaseStudyTitles.DataSource = caseStudies.CaseStudiesItems.ConvertToLong().GetTaxonomyList();
        repCaseStudyTitles.DataBind();
        //To Bind Case Studies Items
        UserExtensions userExtensions = new UserExtensions();
        if (!userExtensions.IsUserLoggedIn())
        {
            repCaseStudyItems.DataSource = caseStudies.CaseStudiesItems.ConvertToLong().GetContentList(true);
            repCaseStudyItems.DataBind();
        }
        else
        {
        //Response.Redirect("/our-clients");
            repMemOurClients.DataSource = caseStudies.CaseStudiesItems.ConvertToLong().GetContentList(true);
            repMemOurClients.DataBind();
        }
        //To Bind Presentation Tab Titles
        List<TaxonomyData> PresentationTitles = caseStudies.PresentationItems.ConvertToLong().GetTaxonomyList();
        //repPresentationTitles.DataSource = PresentationTitles;
        //repPresentationTitles.DataBind();
        //To Bind Presentation Items
        List<TaxonomyItemData> PresentationItems = caseStudies.PresentationItems.ConvertToLong().GetContentList(true);
        //repPresentationIems.DataSource = PresentationItems;
        //repPresentationIems.DataBind();

        GetRequestQuote();
    }
Exemplo n.º 2
0
    protected override void OnInit(EventArgs e)
    {
        LandingRepository landingRepository = new LandingRepository();
        landingPage = landingRepository.GetLandingPage(GeneralExtensions.GetQueryStringId());

        CommonRepository commonRepository = new CommonRepository();
        UserExtensions userExtensions = new UserExtensions();

        if (userExtensions.IsUserLoggedIn() && System.Web.HttpContext.Current.Request.RawUrl.Contains("resources"))
        {
            ltlServices.Text = commonRepository.GetServices("MemberResourcesCollectionId".GetAppKeyLong());
        }
        else
        {
            ltlServices.Text = commonRepository.GetServices(landingPage.ServicesCollectioId.ConvertToLong());

        }
    }