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

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
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
10october.txt 126 10/11/2005 8:48:54 PM
11november.txt 126 10/11/2005 8:48:54 PM
12december.txt 126 10/11/2005 8:48:55 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.


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

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