thanks everyone for your replies on searching a folder with 100's of files
in it. i DO NOT have admin access to the server. i have written a vbscript
function on the server-side, where i pass the name of the folder and loop
through the files using FSO and comparing the string-names of each file to
the searched-for name.

i have over 900 files in one folder, and it is not even noticeable when the
page loads.


-----Original Message-----
From: Chris Tifer [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 16, 2002 9:03 AM
To: ActiveServerPages
Subject: Re: File Search


If you're going to go this route though, you might as well perform the
searching filter server-side because you're still going to have to
loop through it to write out the contents of the array to be processed
as HTML.  While it might speed it up a little bit, you're already going
through it once...

Do it right then I'd say (if you decide to use this technique)

Chris Tifer


----- Original Message -----
From: "Nick Middleweek" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Saturday, September 14, 2002 10:32 AM
Subject: RE: File Search


> Hi,
>
> If you want to remove some of the stress from the server and use
ClientSide
> JS to perform the sequential search on the files, you could...
>
> 1). Use FSO to get an array of filenames for the particular folder.
> 2). Response.Write the ClientSide JavaScript (CSJS) code so you have a
> ClientSide JavaScript Array.
> 3). Send the rest of the page.
> 4). Using CSJS, loop through the array and use indexOf to do the check.
>
>
> I've not tested this but I don't think it'll take long to use VBS on the
> server - I don't think it's much of a performance hit? It's just a loop
and
> string comparisons after all.
>
>
> HTH,
> Nick
>
> --------------------------
> Nick Middleweek
> Web Applications Developer
> Tel: +44(0)1525 375 778
> Mob: +44(0)774 035 5424
> [EMAIL PROTECTED]
>
>
>
> :> -----Original Message-----
> :> From: EXT-Sauceda, Gilbert [mailto:[EMAIL PROTECTED]]
> :> Sent: 13 September 2002 19:00
> :> To: ActiveServerPages
> :> Subject: File Search
> :>
> :>
> :> hey, does anyone know how to do a file search in a folder, with ASP?
> :>
> :> I have a folder on my website, and it has 100's of files in it. I want
to
> :> create a web interface that will allow the user to search for
> :> files in that
> :> folder.
> :>
> :> Does ADO or FSO have this capability? or any other IIS object?
> :> any ideas are
> :> appreciated.
> :>
> :> Thanks.
>
>
> ---
> You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%


---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to