protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BLL.ContactDetails objData = new BLL.ContactDetails(); objData.LoadByPrimaryKey(1); //Header lblHeaderAddress.Text = objData.Location; lblHeaderPhone.Text = objData.Telephone; //FacebookHeader.InnerText = objData.Facebook; aHeaderEmail.InnerText= objData.Email; aHeaderEmail.HRef = "mailto:" + objData.Email; //Footer lblFooterAddress.Text = objData.Location; lblFooterPhone.Text = objData.Telephone; lblFooterEmail.Text = objData.Email; //FacebookFooter.InnerText = objData.Facebook; aFooterEmail.HRef = "mailto:" + objData.Email; if (Page.User.Identity.IsAuthenticated) { lblLoginHi.Visible = true; lblLoginDash.Visible = true; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BLL.ContactDetails objData = new BLL.ContactDetails(); objData.LoadByPrimaryKey(1); lblContactLocation.Text = objData.Location; lblContactPhone.Text = objData.Telephone; aContactEmail.InnerText = objData.Email; aContactEmail.HRef = "mailto:" + objData.Email; BLL.PageContent objPC = new BLL.PageContent(); objPC.LoadByPrimaryKey(1); litContactUs.Text = objPC.PlaceHolder1; lblPageTitle.Text = objPC.PageTitle; } }