pythonV
asked on
ASP.NET Image control, image Url
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.
python.
no-image.JPG
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.
python.
no-image.JPG
can you post your code where u set the image url?
ASKER
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.
thanks anyways.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.