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 "Text File Search"

This sample uses ASP.NET to seach a specified text file for a user specified query phrase. It displays the complete file being searched with the search phrase highlighted and lists the line numbers on which the search phrase was found at the bottom.

If you examine the code you'll notice a couple places where I've used the older style ASP.NET 1.x syntax in order to get the code to run on older systems. I've included commented out versions of the lines as I'd normally do them in ASP.NET 2.0 and later for reference.

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

Play with the running version.

View the live source code.

Back to the "Text File Search" 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