/// <summary> /// The Page_Load server event handler on this user control is used /// to populate the current site settings from the config system /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Page_Load(object sender, EventArgs e) { // If this is the first visit to the page, populate the site data if (Page.IsPostBack == false) { //We flush cache for enable correct localization of items PortalSettings.FlushBaseSettingsCache(portalSettings.PortalPath); siteName.Text = portalSettings.PortalName; sitePath.Text = portalSettings.PortalPath; } EditTable.DataSource = new SortedList(portalSettings.CustomSettings); EditTable.DataBind(); }