Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            btnUpdate.ServerClick += BtnUpdate_ServerClick;
            btnClear.ServerClick  += BtnClear_ServerClick;
            btnClear.Value         = Resources.Index.Clean;

            generalsettings = jobs.Generalsetting();

            if (!Page.IsPostBack)
            {
                lblid.Text                    = generalsettings[0].id.ToString().Clean();
                txtCompanyName.Value          = generalsettings[0].CompanyName.ToString().Clean();
                txtKeywords.Value             = generalsettings[0].Keywords.ToString().Clean();
                txtSiteURL.Value              = generalsettings[0].SiteUrl.ToString().Clean();
                txtCompanyEmail.Value         = generalsettings[0].CompanyEmail.ToString().Clean();
                txtCompanyPhone.Value         = generalsettings[0].CompanyPhone.ToString().Clean();
                txtCompanyAddress.Value       = generalsettings[0].CompanyAddress.ToString().Clean();
                txtWeekdaysWorkingHours.Value = generalsettings[0].WeekdaysWorkingHours.ToString().Clean();
                txtWeekendWorkingHours.Value  = generalsettings[0].WeekendWorkingHours.ToString().Clean();
                txtCopyright.Value            = generalsettings[0].Copyright.ToString().Clean();
                txtCompanyFacebook.Value      = generalsettings[0].CompanyFacebook.ToString().Clean();
                txtCompanyTwitter.Value       = generalsettings[0].CompanyTwitter.ToString().Clean();
                txtCompanyLinkedin.Value      = generalsettings[0].CompanyLinkedin.ToString().Clean();
                txtCompanySkype.Value         = generalsettings[0].CompanySkype.ToString().Clean();
                if (generalsettings[0].SiteStution == Resources.Index.Open)
                {
                    chkopen.Checked = true;
                }
                if (generalsettings[0].SiteStution == Resources.Index.Close)
                {
                    chkclose.Checked = true;
                }
                if (generalsettings[0].SiteLogo == "")
                {
                    image1.ImageUrl = "Content\\img\\logo.png";
                }
                else
                {
                    image1.ImageUrl = generalsettings[0].SiteLogo.ToString().Clean();
                }
            }
        }