private void BindSitePortal()
 {
     try
     {
         SettingProvider spr = new SettingProvider();
         DataTable       dt  = spr.GetAllPortals();
         ddlPortalName.DataSource     = dt;
         ddlPortalName.DataTextField  = "Name";
         ddlPortalName.DataValueField = "PortalID";
         ddlPortalName.DataBind();
         if (ddlPortalName.Items.Count > 0)
         {
             ddlPortalName.SelectedIndex = ddlPortalName.Items.IndexOf(ddlPortalName.Items.FindByValue(pagebase.GetSettingsByKey(SageFrameSettingKeys.SuperUserPortalId)));
         }
         if (ddlPortalName.Items.Count <= 1)
         {
             ddlPortalName.Visible = false;
             btnPortalSave.Visible = false;
         }
         else
         {
             ddlPortalName.Visible = true;
             btnPortalSave.Visible = true;
         }
         ddlPortalName.Visible = false; // added later for preventing portal change
         btnPortalSave.Visible = false; // added later for preventing portal change
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
 private void BinSitePortal()
 {
     try
     {
         SettingProvider spr = new SettingProvider();
         ddlHostPortal.DataSource     = spr.GetAllPortals();
         ddlHostPortal.DataTextField  = "Name";
         ddlHostPortal.DataValueField = "PortalID";
         ddlHostPortal.DataBind();
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }