private void BindPortal() { var portals = dbPortal.sp_PortalGetList(); gdvPortal.DataSource = portals; gdvPortal.DataBind(); }
private Hashtable GetPortals() { Hashtable hstAll = new Hashtable(); if (HttpContext.Current.Cache["Portals"] != null) { hstAll = (Hashtable)HttpContext.Current.Cache["Portals"]; } else { PortalSettingDataContext portaldb = new PortalSettingDataContext(SystemSetting.SageFrameConnectionString); var portals = portaldb.sp_PortalGetList(); foreach (sp_PortalGetListResult portal in portals) { hstAll.Add(portal.SEOName.ToLower().Trim(), portal.PortalID); } } HttpContext.Current.Cache.Insert("Portals", hstAll); return(hstAll); }
private Hashtable GetPortals() { Hashtable hstAll = new Hashtable(); if (HttpContext.Current.Cache["Portals"] != null) { hstAll = (Hashtable)HttpContext.Current.Cache["Portals"]; } else { PortalSettingDataContext portaldb = new PortalSettingDataContext(SystemSetting.SageFrameConnectionString); var portals = portaldb.sp_PortalGetList(); foreach (sp_PortalGetListResult portal in portals) { hstAll.Add(portal.SEOName.ToLower().Trim(), portal.PortalID); } } HttpContext.Current.Cache.Insert("Portals", hstAll); return hstAll; }