Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            List <Experience> experiences = new List <Experience>();
            var explist = BLL.ExperienceManager.GetAllExperience((Guid)Membership
                                                                 .GetUser().ProviderUserKey).ToList();

            foreach (User_Com_Experience item in explist)
            {
                Experience experience = (Experience)Page.LoadControl("Controllers/Experience.ascx");
                experiences.Add(experience);
                experience.DataBind();
                this.Controls.Add(experience);
                experience.ComName.InnerHtml  = item.Company.Name;
                experience.FromDate.InnerHtml = item.from.ToString();
                experience.ToDate.InnerHtml   = item.to.ToString();
                experience.JobTitle.InnerHtml = item.title;
            }

            AppManager UOW    = new AppManager();
            var        edlist = EducationManager.GetAllByUserId((Guid)Membership
                                                                .GetUser().ProviderUserKey).ToList();

            foreach (User_Education item in edlist)
            {
                education education = (education)Page.LoadControl("Controllers/education.ascx");

                this.Controls.Add(education);
                education.eduName.InnerHtml = UOW.Education_Organization
                                              .GetById(item.FK_EduId)[0].Name;
                education.dateFrom.InnerHtml = item.Date_From.ToString();
                education.dateTo.InnerHtml   = item.Date_To.ToString();
                education.grade.InnerHtml    = item.Grade.ToString();
            }
        }