Help needed with ASP & IMG SRC

J

John

Hi all
I hope someone can help as I am completly stumped.

I have several image thumbnails in a folder outside of my web root (for security reasons).
On a site page called 'showThumbnails.asp' I use code to cycle through this folder
and populate the src attribute of the img tag.

When the asp page is opened in a web browser, nothing shows, although if I look at the page source
(via the browser), the img tags are all properly completed.

I was just wondering whether its because the src attribute is populated via asp, because if I
prepopulate it via normal html, then an image shows.

Any ideas anyone?
TIA
 
S

Stefan B Rusynko

How you generate the browser viewable html should not make a difference
- once generated by ASP code it is same as static html

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi all
| I hope someone can help as I am completly stumped.
|
| I have several image thumbnails in a folder outside of my web root (for security reasons).
| On a site page called 'showThumbnails.asp' I use code to cycle through this folder
| and populate the src attribute of the img tag.
|
| When the asp page is opened in a web browser, nothing shows, although if I look at the page source
| (via the browser), the img tags are all properly completed.
|
| I was just wondering whether its because the src attribute is populated via asp, because if I
| prepopulate it via normal html, then an image shows.
|
| Any ideas anyone?
| TIA
|
 
T

Thomas A. Rowe

Does your ASP application (IUSER_machine) have permission to access the folder outside of the web
root?

Also what may you think that you are protection your images, since once they are displayed in the
browser, they can be copied.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================
 
J

John

Yes, access permissions are set. The server specifically sets aside a 'private' folder with
permissions already set.
I am not trying to protect the images as such. Its just that when the thumbnails are created on the
server using ASPJpeg, I need a folder such as this one, and as far as I can tell its the only way to
do it.
 
T

Thomas A. Rowe

Ok, my host set the permissions on a folder/subweb that is within the web site fir using ASPUpload
and ASPJpeg. The permissions are based on the account login.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================
 

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

Similar Threads


Top