ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!

Please visit our partners

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates

ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

Script Output:
Find files whose names contain:

Some sample queries: ary, ber, 0, 1, show all files.

Contents of filtered/ that match your query:

File Name: File Size: Date Created:
01january.txt 126 10/11/2005 8:48:59 PM
02february.txt 126 10/11/2005 8:48:43 PM

ASP HTML Download            FAQ

ASP.NET Version

I recently received an email from a visitor who wanted to know what he could do when the number of files in a directory got too large to be easily browsed via our original directory listing sample. The only things I could come up with were maybe splitting the results into multiple pages (which didn't really seem like it would help much) or letting users narrow the number of displayed files by filtering the files based on file name. Well that's what this sample does.

On first run it displays all the files, but it also provides a text box where you can enter part or all of a file name and get back a list of only the files whose names contain the text you entered. For searches you might be performing frequently, I've also shown some examples of how you can simply create hyperlinks to different result sets.


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers