Hyperlink.ImageUrl with c:\program files\somefolder\picture.jpeg does not work

P

Pat

Hi,
I have a picture somewhere under 'Program Files' Folder.
When I assign ImageURL to a Hyperlink it does nothing. It does not read the
picture file.
But when I copy that picture to c:\somepicture.jpeg and assign this to
imageURL then it works.

How can I make it work directly from somefolder under program files.

Thanks in advance.
Pat
 
R

rote

The Program Files folder is a ssystem folder why do you want to load images
from there (You might not even have enough permission on it)
Copy the image to another folder as you did before.
Patrick
 
G

Göran Andersson

Pat said:
Hi,
I have a picture somewhere under 'Program Files' Folder.
When I assign ImageURL to a Hyperlink it does nothing. It does not read the
picture file.
But when I copy that picture to c:\somepicture.jpeg and assign this to
imageURL then it works.

How can I make it work directly from somefolder under program files.

Thanks in advance.
Pat

You can only use a folder within a web application if you want it to
work as a normal web application. Any folder outside the web root will
only be accessible in the special case when you are using the same
computer as both server and client.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top