Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying images
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01147739
Message ID:
01148375
Views:
19
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform