Пример #1
0
        protected void Submit_Click(object sender, EventArgs e)
        {
            SueetieCommon.UpdateSiteSetting(new SiteSetting("SiteName", txtSiteName.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("RegistrationType", rblRegistrationType.SelectedValue));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("CreateWikiUserAccount", chkCreateWikiAccount.Checked.ToString()));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("GroupsFolderName", txtGroupsFolderName.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("DefaultLanguage", txtDefaultLanguage.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("SitePageTitleLead", txtSitePageTitleLead.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("DefaultTimeZone", ddTimeZones.SelectedValue));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("RecordAnalytics", chkRecordAnalytics.Checked.ToString()));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("HandleWwwSubdomain", rblWwwSubdomain.SelectedValue));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("IpGeoLookupUrl", txtIpGeoLookupUrl.Text));
            SueetieCommon.ClearSiteSettingsCache();

            lblResults.Visible = true;
            lblResults.Text    = "Site settings have been updated!";
        }
Пример #2
0
        protected void Submit_Click(object sender, EventArgs e)
        {
            SueetieCommon.UpdateSiteSetting(new SiteSetting("ContactEmail", txtContactEmail.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("FromEmail", txtFromEmail.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("FromName", txtFromName.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("SmtpServer", txtSmtpServer.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("SmtpServerPort", txtSmtpServerPort.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("SmtpUserName", txtSmtpUserName.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("SmtpPassword", txtSmtpPassword.Text));
            SueetieCommon.UpdateSiteSetting(new SiteSetting("ErrorEmails", txtErrorEmails.Text));

            SueetieCommon.UpdateSiteSetting(new SiteSetting("EnableSSL", chkEnableSSL.Checked.ToString()));

            SueetieCommon.ClearSiteSettingsCache();

            lblResults.Visible = true;
            lblResults.Text    = "Email settings have been updated!";
        }