Пример #1
0
        protected void okButton_OnClick(object sender, EventArgs e)
        {
            SPSite site = SPContext.Current.Site;

            WBFWebPartsUtils.SetRecordsLibraryToUse(site, RecordsLibraryToUse.SelectedValue);
            WBFWebPartsUtils.SetLocalPublicLibraryURL(site, LocalPublicLibraryURL.Text);

            WBFWebPartsUtils.SetUseExtranetLibrary(site, UseExtranetLibrary.Checked);
            WBFWebPartsUtils.SetLocalExtranetLibraryURL(site, LocalExtranetLibraryURL.Text);

            WBFWebPartsUtils.SetShowFileIcons(site, ShowFileIcons.Checked);
            WBFWebPartsUtils.SetShowKBFileSize(site, ShowKBFileSize.Checked);
            WBFWebPartsUtils.SetShowDescription(site, ShowDescription.Checked);

            site.RootWeb.Update();

            SPUtility.Redirect("settings.aspx", SPRedirectFlags.RelativeToLayoutsPage, Context);
        }