ASP.NET Image control, image Url

Posted on 2009-04-27
Last Modified: 2012-05-06
Hello Experts,

I have an ASP.Net website in VB, one of the functions is to upload  an image which is then displayed in an Image component.

If I set the ImageUrl property manually before debugging, the image is loaded fine. However if I set it through code while the website is running, the image is not displayed and that red X is shown as in the image uploaded.

Any ideas why this is happening?

Thanks in advance.


Question by:pythonV
    LVL 7

    Expert Comment

    can you post your code where u set the image url?

    Author Comment

    i may have discovered the source of the problem., the code was attempting to set the imageURl to file from the client machine not server.

    thanks anyways.

    LVL 6

    Accepted Solution

    The problem in image path. It is not getting correct and full path of image from client machine.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now