Example #1
0
        private void SetTitle(Guid providerID)
        {
            ProviderDAC dac = new ProviderDAC();

            if (dac.IsUserImageExist(providerID))
            {
                divWithImage.Visible = true;
                divNoImage.Visible   = false;
                int ImageID = new ProviderBFC().getProviderPrimaryImage(providerID);
                if (ImageID != 0)
                {
                    ProviderImage.ImageUrl = "~/ImageHandler.ashx?" + SystemConstants.qs_UserImageID + "=" + ImageID;
                }
                else
                {
                    divWithImage.Visible = false;
                    divNoImage.Visible   = true;
                }
            }
            else
            {
                divWithImage.Visible = false;
                divNoImage.Visible   = true;
            }
        }