private void LoadDisplayName()
    {
        string organizationName = string.Empty;

        if (Convert.ToInt32(Session["SignInAccountTypeId"]) == 0)
        {
            lblUserText.Text = "You signed in as " + Session["SignInId"].ToString();
            return;
        }
        lblUserId.Text = "<span class=\"LoggedInSub\">You signed in as " + Session["SignInId"].ToString() + "<br/>";

        switch ((AccountType)Convert.ToInt32(Session["SignInAccountTypeId"]))
        {
            case AccountType.Organization:
                lblUserId.Text += " (Administration)</span>";
                break;
            case AccountType.Doctor:
                organizationName = new OrganizationBAL().GetOrganizationNameById(Convert.ToInt32(Session["SignInOrganizationId"]));
                if (organizationName.Length > 50)
                    organizationName = organizationName.Substring(0, 50) + "...";
                lblUserId.Text += " (Doctor in " + organizationName + ")</span>";
                break;
            case AccountType.Service:
                organizationName = new OrganizationBAL().GetOrganizationNameById(Convert.ToInt32(Session["SignInOrganizationId"]));
                if (organizationName.Length > 50)
                    organizationName = organizationName.Substring(0, 50) + "...";
                lblUserId.Text += " (Service in " + organizationName + ")</span>";
                break;
            case AccountType.Patient:
                lblUserId.Text += " (Patient)</span>";
                break;
        }
    }
    private void LoadDisplayName()
    {
        string displayName = string.Empty;
        string organizationName = string.Empty;

        if (Session["SignInAccountId"] != null)
            displayName = new CommonBAL().GetNameBySignInId(Session["SignInId"].ToString(), Convert.ToInt32(Session["SignInAccountTypeId"]), Convert.ToInt32(Session["SignInAccountId"]), Convert.ToInt32(Session["SignInOrganizationId"]));
        else
            displayName = new CommonBAL().GetNameBySignInId(Session["SignInId"].ToString(), 0, 0, Convert.ToInt32(Session["SignInOrganizationId"]));

        if ((AccountType)Convert.ToInt32(Session["SignInAccountTypeId"]) == AccountType.Organization)
        {
            organizationName = new OrganizationBAL().GetOrganizationNameById(Convert.ToInt32(Session["SignInOrganizationId"]));
            lblUser.ToolTip = "Welcome " + organizationName;

            if (organizationName.Length > 50)
                lblUser.Text = "Welcome " + organizationName.Substring(0, 50) + "...";
            else
                lblUser.Text = "Welcome " + organizationName;
            return;
        }
        else
        {
            lblUser.Text = "Welcome " + displayName;
            return;
        }
    }