469,575 Members | 1,472 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

ASP.NET display photos on pages dynamically


I am writing an application which will display the photos on the web pages.
The photos are stored in the seperate machine but in the same LAN.

First, when the user visit the web site, the photos are shown as small size.
Then, when the user click on the photo, it will show the larger size on another Image box in the same page.
I tried using ImageMap, It works.
But, when I look up the client code, it has the physical URL of the photos. I don't want the users to see the URL of the photos.I am using ASP.NET 2.0.

How would I do?
Any suggestion or useful links?


Jul 25 '08 #1
1 1318
979 Expert 512MB
Hi Jason,

In the IIS, if you create a virtual directory (called say 'Images') underneath your website which points to the location of your images you can link to them as below.
Expand|Select|Wrap|Line Numbers
  1.  <img src='Images/Image01.gif' />
which will prevent their actual location being written to the browser.

Hope this helps,

Dr B

PS You've posted this in the ASP Forum which is for Classic ASP only - I've moved it for you but in future please post all ASP.NET questions in the .NET Forum. Thanks.
Jul 25 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Eric Rechter | last post: by
1 post views Thread by Gary | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.