private void Page_Load(object sender, System.EventArgs e) { // Get portalID from querystring if (Request.Params["portalID"] != null) { currentPortalID = Int32.Parse(Request.Params["portalID"]); } if (currentPortalID != -1) { // Remove cache for reload settings if (!Page.IsPostBack) { Rainbow.Settings.Cache.CurrentCache.Remove(Rainbow.Settings.Cache.Key.PortalSettings()); } // Obtain PortalSettings of this Portal PortalSettings currentPortalSettings = new PortalSettings(currentPortalID); // If this is the first visit to the page, populate the site data if (!Page.IsPostBack) { PortalIDField.Text = currentPortalID.ToString(); TitleField.Text = currentPortalSettings.PortalName; AliasField.Text = currentPortalSettings.PortalAlias; PathField.Text = currentPortalSettings.PortalPath; } EditTable.DataSource = new SortedList(PortalSettings.GetPortalCustomSettings(currentPortalSettings.PortalID, PortalSettings.GetPortalBaseSettings(null))); EditTable.DataBind(); EditTable.ObjectID = currentPortalID; } }