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





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


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