Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         BLL.PageContent objData = new BLL.PageContent();
         objData.LoadByPrimaryKey(2);
         lblPageTitle.Text = objData.PageTitle;
         litAboutUs.Text = objData.PlaceHolder1;
     }
 }
Esempio n. 2
0
        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;
            }
        }