protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { cEnterprise enterprise = _business.GetEnterprise(); wucContact._enterprise = enterprise; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { rptFaq.DataSource = _business.GetFaq(); rptFaq.DataBind(); cEnterprise enterprise = _business.GetEnterprise(); wucContact._enterprise = enterprise; } }
public cEnterprise GetEnterprise() { ACAD_ACADEMIAS academy = GetAcademy(); cEnterprise enterprise = new cEnterprise() { enterpriseId = academy.CD_ACADEMIA, description = academy.TX_DESCRICAO, email = academy.TX_EMAIL, tel = academy.TX_TEL }; return(enterprise); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { cEnterprise enterprise = _business.GetEnterprise(); imgAbout.ImageUrl = "assets/" + _enterpriseId.ToString() + "/about/about.jpg"; ltAbout.Text = enterprise.description; cTestimonial testimonial = _business.GetTestimonials().FirstOrDefault(); ltTestimonial.Text = testimonial.testimonial; ltTestimonialName.Text = testimonial.autor; ltTestimonialLocal.Text = testimonial.local; wucContact._enterprise = enterprise; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { List <cArea> areas = _business.GetCourses(); rptTabs.DataSource = areas; rptTabs.DataBind(); rptTab.DataSource = areas; rptTab.DataBind(); cEnterprise enterprise = _business.GetEnterprise(); wucContact._enterprise = enterprise; wucTestimonials._testimonials = _business.GetTestimonials(); wucTestimonials._enterpriseId = _enterpriseId; } }