Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SystemInfo systemInfo = new SystemInfo();
     systemInfo.LoadItem("Home Introduction");
     if (systemInfo.RecordsExists)
         labelIntoduction.Text = systemInfo.SIValue;
     else
         labelIntoduction.Text = "This is the Introduction." + "<BR>" + "Someone should write something here." +
                                 "<BR>" + "#JustSayin TEST TEST TEST";
 }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SystemInfo siAboutUsIntro = new SystemInfo();
            siAboutUsIntro.LoadItem("About Us Introduction");

            if (siAboutUsIntro.RecordsExists)
                labelAboutUs.Text = siAboutUsIntro.SIValue;
            else
                labelAboutUs.Text = "When were we established my dear?<BR>No Idea, like yesterday?<BR>Naw can't be!<BR>Says here it's been like years.";
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {

            SystemInfo siAddress = new SystemInfo();
            SystemInfo siContactNumber = new SystemInfo();
            SystemInfo siEmail = new SystemInfo();

            siAddress.LoadItem("Address");
            siContactNumber.LoadItem("Contact Number");
            siEmail.LoadItem("Email Address");


            labelAddress.Visible = labelAddressHeader.Visible = siAddress.RecordsExists;
            if (siAddress.RecordsExists)
                labelAddress.Text = siAddress.SIValue;

            labelContactNumber.Visible = labelContactNumberHeader.Visible = siContactNumber.RecordsExists;
            if (siContactNumber.RecordsExists)
                labelContactNumber.Text = siContactNumber.SIValue;

            labelEmail.Visible = labelEmailHeader.Visible = siEmail.RecordsExists;
            if (siEmail.RecordsExists)
                labelEmail.Text = siEmail.SIValue;
        }