Does WebControls.Image actually contain an image?

J

Jim Hammond

Does a WebControls.Image object actually contain an image, and if so, how
can I get it?

As far as I can tell, the WebControls.Image class does not contain the image
itself. It seems to only contain the URL to the image, which doesn't work
for me because the image file is on the client system.

Thanks,

Jim
 
O

Oliver

Your assumption is correct. The control only points to the browser to the
location of the image. If you had a uniform/known location for the images on
*every* local system, you might be able to make it work as:

<asp:Image id="Image1" runat="server" ImageUrl="c:\windows\Soap
Bubbles.bmp"></asp:Image>

Not a very satisfactory/practical solution.
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top