Link to home
Start Free TrialLog in
Avatar of pythonV
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
Avatar of maXXXeE
maXXXeE

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

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.


ASKER CERTIFIED SOLUTION
Avatar of havj123
havj123
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial