ASP 101 - Active Server Pages 101 - Web03
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

ASP.NET version of "Directory List (Filtered)"

This script allows users to search for files simply by entering any part of the filename. The implementation is easier then the classic ASP version thanks to the fact that the GetFiles method of the DirectoryInfo object will take an optional SearchPattern parameter and handle the filtering for us.

The script seems to work fine except when you search for "1". If you've got an idea why the results don't come back correctly in this case (or even a hypothesis that I can test) let me know. You can email me at john (at) asp101 (dot) com.

Here's a zip file of the code (1.2 KB).

Play with the running version.

View the live source code.

Back to the "Directory List (Filtered)" sample


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