Ejemplo n.º 1
0
    private void renderOrganizationsGridView(string memberId)
    {
        HideMessage();
        try
        {
            if (!String.IsNullOrEmpty(memberId))
            {
                GlobalLists.MemberOrganizations = Members.GetMemberOrganizations(int.Parse(memberId.Trim())).ToList();


                if (GlobalLists.MemberOrganizations.Count == 0)
                {
                    //hide grids
                    ValidateGridDisplayParameters(-1);
                    ShowMessage(GlobalMessages.sMSG_NO_ORGANIZATION_WARNING);
                }
                else
                {
                    OrganizationsGridView.DataSource = GlobalLists.MemberOrganizations;
                    OrganizationsGridView.DataBind();
                }
            }
            else
            {
                ShowMessage(String.Format(GlobalMessages.sMSG_EMPTYPARAM, "Member id"));
            }
        }
        catch (Exception ex)
        {
            logger.Error("Exception in uc_MemberDetail.renderOrganizationsGridView:" + ex.Message);
            ShowMessage(String.Format(GlobalMessages.sMSG_WARNING, ex.Message));
        }
    }