Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying images
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01147739
Message ID:
01148375
Vues:
20
Kevin,

I went back to double check the file name. It is correct. I even tried hard-coding the file name. It still does not display the image. It doesn't have to be in the images folder, does it?

Here's my code. The value in pe.photofile is correct.
    protected void btnFind_Click(object sender, EventArgs e)
    {
         string lsLastName = this.txtLastName.Text.PadRight(this.txtLastName.MaxLength).ToUpper();
        string lsFirstName = this.txtFirstName.Text.PadRight(this.txtFirstName.MaxLength).ToUpper();
        pe = oPersonnel.GetPersonByNameAndBirthDate(lsLastName, lsFirstName, this.txtBirthDate.Text);
        if (pe.HasValues)
        {
             if (!mmType.IsEmpty(pe.photofile))
            {
                this.imgPhotoFile.ImageUrl = pe.photofile.Trim();
            }
        }
    }
Thanks.

Linda
Linda Harmes
HiBit Technologies, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform