Does WebControls.Image actually contain an image?

  • Thread starter Thread starter Jim Hammond
  • Start date Start date
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
 
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.
 
Back
Top