I have an ASP page that currently gives me an output of file listing with
links to each of them for the current directory.
The problem I am having is there are getting to be too many folders. I
currently have the ASP page copied into each folder and sub folder, but if I
want to make a change, I have to change all the ASP files.
Is there a way I can create either:
Have a simple index.asp page that will reference and run my code in my
current ASP page? This way I have only one complex file to change, and
simple index in each folder.
Or
Can I create an index page at the root of the server that will give me a
folder listing, and then when I click on a link to a folder it can pass the
new current directory to the root index page to give a listing of the new
current directory?
Any code snippets would be appreciated.
I am currently using directory listings in IIS, but this is an ugly way, and
I want to be able to clean it up.
Thanks,
Dan
--
__o
_-\<,
(_)/(_)____ 2 1593
You can use a single page in the root, and Request.Queryst ring() to
determine the folder to be read.
<%
strTemp = request.queryst ring("folder")
if strTemp = "" then strTemp = "./" '// current folder
set fldr = fso.getfolder(s erver.mappath(s trtemp))
%>
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Dan King" <da*******@eart hlink.net> wrote in message
news:ur******** *****@TK2MSFTNG P09.phx.gbl... I have an ASP page that currently gives me an output of file listing with links to each of them for the current directory. The problem I am having is there are getting to be too many folders. I currently have the ASP page copied into each folder and sub folder, but if
I want to make a change, I have to change all the ASP files.
Is there a way I can create either: Have a simple index.asp page that will reference and run my code in my current ASP page? This way I have only one complex file to change, and simple index in each folder.
Or
Can I create an index page at the root of the server that will give me a folder listing, and then when I click on a link to a folder it can pass
the new current directory to the root index page to give a listing of the new current directory?
Any code snippets would be appreciated.
I am currently using directory listings in IIS, but this is an ugly way,
and I want to be able to clean it up.
Thanks, Dan
-- __o _-\<, (_)/(_)____
Thanks Steve. After a little tweaking, I got it to work.
Dan
"Steven Burn" <pv*@noyb.com > wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. You can use a single page in the root, and Request.Queryst ring() to determine the folder to be read.
<% strTemp = request.queryst ring("folder") if strTemp = "" then strTemp = "./" '// current folder set fldr = fso.getfolder(s erver.mappath(s trtemp)) %>
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Dan King" <da*******@eart hlink.net> wrote in message news:ur******** *****@TK2MSFTNG P09.phx.gbl... I have an ASP page that currently gives me an output of file listing
with links to each of them for the current directory. The problem I am having is there are getting to be too many folders. I currently have the ASP page copied into each folder and sub folder, but
if I want to make a change, I have to change all the ASP files.
Is there a way I can create either: Have a simple index.asp page that will reference and run my code in my current ASP page? This way I have only one complex file to change, and simple index in each folder.
Or
Can I create an index page at the root of the server that will give me a folder listing, and then when I click on a link to a folder it can pass the new current directory to the root index page to give a listing of the
new current directory?
Any code snippets would be appreciated.
I am currently using directory listings in IIS, but this is an ugly way, and I want to be able to clean it up.
Thanks, Dan
-- __o _-\<, (_)/(_)____
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John Pether (john |
last post by:
Hi
I have a page that displays business listings. I have a repeater with dynamic text and in the 4th column I have an email and website link. Both display properly but I need to have one take precedent over the other, so if ("www") is not null then it should be displayed and the email shouldn't. I also need some script to only display either if the field is not null.
This is not really my thing, and I have been trying to figure this out...
|
by: Danny |
last post by:
How do you guys make listings such as product listings and their detail
pages more crawler friendly, if they are genrated using dynamic asp pages.
If your ASP uses a format like this: www.mysite.com/products.asp?idnum=3444
to display detail pages, how can I apply SEO to this format??
I know unix hosts use the mod rewrite, but I do not have access to the
server settings etc.
BUt I can access a database etc.
What are your thoughts?
|
by: Sally B. |
last post by:
Hello,
I searched, but couldn't find answers--probably because I'm not sure
what this is called... Anyway, I have about 50 web pages and I want to
have some JavaScript that will read in a list of keywords, scan the web
page and create links on any of those keywords... Is there any way to
do this sort of thing?
Thanks!
|
by: James Owens |
last post by:
I'm a relative newbie, interested in storing the information from several
server directories and subdirectories in XML so that I can present it
selectively using XSL (all files updated today or last MOnday, files from
several drirectories in alphabetical order, things like that).
To represent directories and subidrectories, is it advisable to nest the
same element:
<directory>
<directory>
|
by: Danny Boy |
last post by:
Hi,
"Snif" is an excellent little script to index files and directories.
It's just one single file, and the advantage is that you merely drop it
into the directory you want to index, point a browser to the script and
you're done.
But to me, the simplicity is a DISadvantage since I need to index
directories that are located down in the site hierarcy, and to which the
users won't have direct access.
| |
by: Gordon |
last post by:
I'm trying to remove a directory and all its contents from within a
script. I wrote a recursive function to take care of it, but when I
run it I get random "Directory not empty" error messages.
I dropped some code in to echo out the name of the file that's about
to be rmdir()ed or unoink()ed (depending if it's a file or a
directory) to see if it was choking on a particular subdirectory, but
doing that causes all the error messages to...
|
by: Name Withheld |
last post by:
OK i know this is a 101 question but...
ASP.NET/VB.NET
ListingItems() as string
I need a nested array of Listings().ListingItems() so i can read a text file
and split each line and insert the results into this array. The read and
split are easy (and so should be setting up this array), but i am banging my
head on how to get my class defined as an array.
|
by: Steve |
last post by:
My site is hosted on a Godaddy reseller site. Godaddy only allows the
use of Curl to access remote sites.
What is the method for listing a directory after connecting to the
site with Curl?
I've already tested my code for connecting but how do I list whats in
the directory.
The purpose is to compare the list to the filenames in my database.
|
by: samatair |
last post by:
I need to change an existing listings page with pagination.
Each page shows 10 listings and they are ordered by the date they are added to the site.
Now recently added listings show up in the first page. I need to get all the listings to come on the first page by rotating the showing of listings perhabs each day (each page should only show 10 listings).
Thus first day showing first 10 listings in the first page and the next day showing...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |