R
Robbe Morris - [MVP] C#
I've never had to do this before...
I have a web app that needs to look for image files outside the
web site folders if it is run on localhost but look for the image files
in sub folders of the web site if run anywhere else. And yes, there
is a logical reason for this...
For some reason, I can't get the local image file to be rendered
in the page when going to localhost:
<asp:ImageButton ID="ImageButton1" runat="server"
ImageUrl="file:///D:\inetpub\Submit_en-us.gif" OnClick="imgSubmit_Click" />
I know that this is the proper path as I pasted it into a test.htm file and
the image
file showed up properly.
This seems rather odd. Anyone with insight?
I have a web app that needs to look for image files outside the
web site folders if it is run on localhost but look for the image files
in sub folders of the web site if run anywhere else. And yes, there
is a logical reason for this...
For some reason, I can't get the local image file to be rendered
in the page when going to localhost:
<asp:ImageButton ID="ImageButton1" runat="server"
ImageUrl="file:///D:\inetpub\Submit_en-us.gif" OnClick="imgSubmit_Click" />
I know that this is the proper path as I pasted it into a test.htm file and
the image
file showed up properly.
This seems rather odd. Anyone with insight?