/// <summary> /// Added by bj to change the Portal /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnPortalSave_Click(object sender, EventArgs e) { int portalID = GetPortalID; if (int.Parse(ddlPortalName.SelectedItem.Value) != 1) { SettingProvider sageSP = new SettingProvider(); sageSP.SaveSageSetting(SettingType.SiteAdmin.ToString(), SageFrameSettingKeys.SuperUserPortalId, ddlPortalName.SelectedItem.Value, GetUsername, portalID.ToString()); sageSP.ChangePortal(int.Parse(ddlPortalName.SelectedItem.Value)); BindPortal(); HttpRuntime.Cache.Remove(CacheKeys.Portals); HttpRuntime.Cache.Remove(CacheKeys.SageSetting); Response.Redirect(Request.Url.ToString()); } else { ShowMessage("Current Portal", "", "The portal you want to make Parent is existing parent portal", SageMessageType.Alert); } }