private void fillName()
    {
        lblName.Text = "Guest";
        BLL.CompanyManager oCompanyManager;
        Entity.CompanyInfo oCompanyInfo;
        string sUsername = AppLib.GetLoggedInUserName();
        oCompanyManager = new BLL.CompanyManager();
        oCompanyInfo = new Entity.CompanyInfo();
        oCompanyInfo = oCompanyManager.CheckEmailIDExistsInCompany(sUsername);
        if (oCompanyInfo != null)
        {
            lblName.Text = oCompanyInfo.StrCompanyName;
            // rmMenu.Items[7].Items[2].Visible = false;
            //  IFRAME_CONTENT.Attributes.Remove("src");
            // IFRAME_CONTENT.Attributes.Add("src", AppConfig.GetBaseSiteUrl() + "Company/UploadUsersForRegistration.aspx");
            //rmMenu.Items[7].Items[1].Visible = true;
            //rmMenu.Items[7].Items[0].Visible = true;
        }
        else
        {
            //rmMenu.Items[7].Items[2].Visible = true;
            // rmMenu.Items[7].Items[1].Visible = false;
            //rmMenu.Items[7].Items[0].Visible = false;
            //rmMenu.Items[7].Visible = false;
        }

        oCompanyInfo = null;
        oCompanyManager = null;
        lblLogout.Text = " ";
        lblLogout.Text = "<a class='small' href='" + AppConfig.GetBaseSiteUrl() + "login/logout.aspx'>Log Out</a> ";
        //lblEdit.Text = " ";
        if (Membership.GetUser() != null)
        {
            //string sUsername = Membership.GetUser().UserName;
            DS = objBackofficeClass.Mem_GET_UserInfo(sUsername);
            try
            {
                // lblEdit.Text = "<a class='small' href=\"javascript:load('" + AppConfig.GetBaseSiteUrl() + "Main/UserUtilities/EditUser.aspx');\">My Account</a> <span style=font-weight:normal;>|</span> ";
                lblLogout.Text = "<a class='small' href='/login/logout.aspx'>Log Out</a> ";/*Commented by Netsmartz*/
                lblLogout.Text = "<a class='small' href='" + AppConfig.GetBaseSiteUrl() + "login/logout.aspx'>Log Out</a> ";

                if (AppLib.GetLoggedInUserType().ToLower().ToString().Equals("a"))
                {
                   // lblAdminArea.Text = "<a target='_top' class='small' href='" + AppConfig.GetBaseSiteUrl() + "Backoffice/Main_FRAME.aspx'>Admin Area</a>";//  <span style='color:#DAA520'>|</span> ";
                }
                if (AppLib.GetCurrentUserType().ToLower().ToString().Equals("c"))
                {
                    //lblEdit.Text = "<a class='small' href=\"javascript:load('" + AppConfig.GetBaseSiteUrl() + "Company/EditCompanyDetails.aspx?id=" + AppLib.GetLoggedInUserId() + "');\">My Account</a> <span style=font-weight:normal;>|</span> ";
                }

                lblName.Text = DS.Tables[0].Rows[0]["FNAME"].ToString() + " " + DS.Tables[0].Rows[0]["LNAME"].ToString();
            }
            catch (Exception ex)
            {
            }
        }
    }