protected override void OnInit(EventArgs e)
 {
     string orgId = string.Empty;
     if (Request.Cookies["OrganisationId"] != null)
     {
         orgId = Server.HtmlEncode(Request.Cookies["OrganisationId"].Value);
         if (HttpContext.Current.Cache[orgId] != null)
         {
             orgBasicInfo = HttpContext.Current.Cache[orgId] as OrganisationManager.OrganisationBasicInfo;
         }
         else
         {
             orgBasicInfo = OrganisationManager.GetOrganisationInfo(new Guid(orgId));
             HttpContext.Current.Cache.Add(orgId, orgBasicInfo, null, DateTime.MaxValue, new TimeSpan(0, 35, 0), CacheItemPriority.Normal, null);
         }
         this.OrganisationId = orgId;
         this.lblOrganisationName.Text = orgBasicInfo.Name;
     }
     else
     {
         this.lblOrganisationId.Text = "Problem to read cookie";
         this.lblOrganisationId.ForeColor = System.Drawing.Color.Red;
     }
     this.lblRole.Text = ((BasePage)this.Page).UserRole;
     base.OnInit(e);
     this.lblTitle.Text = this.Page.Title;
 }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            object orgIdObj = Request.QueryString["OrgId"];

            if (orgIdObj != null && !string.IsNullOrEmpty(orgIdObj.ToString()))
            {
                string orgId = orgIdObj.ToString();
                if (HttpContext.Current.Cache[orgId] != null)
                {
                    this.OrgBasicInfo = HttpContext.Current.Cache[orgId] as OrganisationManager.OrganisationBasicInfo;
                }
                else
                {
                    this.OrgBasicInfo = OrganisationManager.GetOrganisationInfo(new Guid(orgId));
                    HttpContext.Current.Cache.Add(orgId, this.OrgBasicInfo, null, DateTime.MaxValue, new TimeSpan(0, 35, 0), CacheItemPriority.Normal, null);
                }
                this.Page.Title = this.OrgBasicInfo.Name;
                if (string.IsNullOrEmpty(this.OrgBasicInfo.Logo))
                {
                    this.imgOrgLogo.Visible = false;
                    this.lblOrgLotoText.Text = this.OrgBasicInfo.Name;
                }
                else
                {
                    this.imgOrgLogo.ImageUrl = string.Format("~/OrganisationLogos/{0}", this.OrgBasicInfo.Logo);
                }
            }
            else
            {
                Response.Redirect("http:\\www.ynet.co.il");
            }
        }