473,325 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Dynamic Displayer of folders

I have a folder called "Policies" this folder contains several subfolders, inside the subfolders are the policies in PDF format. I am trying to build a single "Policies" page to display all the folders then you can click on the folder and it will then again write all the policies in that folder.
Thanks in advance! I've been working on this for about 2 months now!
May 7 '08 #1
2 1307
jeffstl
432 Expert 256MB
I have a folder called "Policies" this folder contains several subfolders, inside the subfolders are the policies in PDF format. I am trying to build a single "Policies" page to display all the folders then you can click on the folder and it will then again write all the policies in that folder.
Thanks in advance! I've been working on this for about 2 months now!
Are you using Classic ASP or ASP.NET?

Here is how to use the file system object in classic ASP

Expand|Select|Wrap|Line Numbers
  1. set MyFSO = server.createobject("Scripting.FileSystemObject")
  2. MyFolder = Request.ServerVariables("APPL_PHYSICAL_PATH") & "..\wwwroot\NameOfFolder"
  3. set MyFiles = MyFSO.GetFolder(MyFolder)
  4. set FileList = MyFiles.Files
  5. 'LOOP THROUGH
  6. for each PolicyFile in FileList
  7.      response.write PolicyFile.name 
  8. next
  9.  
Obviously you can add dynamic <a href> tag around your file name to link to it.

If you are using asp.net please specify as the process is quite different
May 7 '08 #2
DrBunchman
979 Expert 512MB
You can also use an <embed> or <iframe> tag to display your pdf in the browser along with other content.

Dr B
May 8 '08 #3

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

Similar topics

2
by: Luke Skywalker | last post by:
Hi, Currently, I use filters in Privoxy followed by a JavaScript embedded script to further filter a web page that is restricted to IE (because of incompatibilities of the DOM), and was...
4
by: spx27 | last post by:
Does anyone know the best way to handle passing a dynamic menu generated from a login from one asp.net page to another. Would it be better to recreate the menu on each page? Save the menu as a...
1
by: MrCedars | last post by:
Hi, I am new to using Microsoft Acces, I know I need to use some VBA code to do this job. Not sure where to start is someone could put me in the right direction. Any help would be appreciated. ...
7
by: DavidSeck.com | last post by:
Hi guys, first post :) my question: is it possible to have dynamic variable names, I mean something like this: for($i=0;$i<x;$i++){ $y_$i = blabla; }
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.