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





Sample HTML Code generated by the ASP:
<form action="/samples/textfilesearch.asp" method="get">
  Search For:
  <input type="text" name="query"
    value="ward" />
  <input type="submit" />
</form>
<br />
Searching Text File "<strong>textfilesearch.txt</strong>" for "<strong>ward</strong>":
<pre>
Name              Sales
-----------------------
David Andersen    6420
Steven Buchanan   3245
Laura Callahan    3675
Nancy Dodsworth   2750
Frank Ed<span style="background-color:yellow;">ward</span>s     3840
Andrew Fuller     5000
Chris Graham      4050
Peter Hopkins     6710
Owen Ingraham     4750
Ed<span style="background-color:yellow;">ward</span> Jones      3450
Robert King       5290
Janet Leverling   6250
Greg Miller       5640
Beth Nelson       4345
Ian Ostrander     3965
Margaret Peacock  4685
Ho<span style="background-color:yellow;">ward</span> Quinn      5865
Kate Richards     4260
Fred Smith        6370
Tammy Steel       3570
Vincent Thompson  4820
Debra Underwood   3790
Linda Valentino   2965
Mark White        4500
Simon Xavier      5580
Quincy Youngs     4420
Walter Zimmerman  4980
</pre>
<p>The text searched for was found on the following lines in the file: 7, 12, 19</p>


Output

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