Mesin pencari terdiri dari file HTM dan file ASP. Ini terutama menggunakan komponen FileSystemObject untuk mencapai tujuannya. Ini memiliki fungsi yang kuat dan dapat digunakan langsung setelah memodifikasi antarmuka. Tentu saja, lebih baik menambahkan sedikit barang Anda sendiri.
SearchPage.htm
File HTM ini digunakan untuk melewati kondisi tersebut
<Html>
<head>
<title> Contoh mesin pencari ASP </iteme>
</head>
<body>
<senter>
<Metode form = post action = search.asp>
<Table Bgcolor =#CC6633 BORDER = 0>
<tr>
<Td rowspan = 3 bgcolor =#cc6633 width = 21 nowrap> </td>
<Td width = 363 nowrap> <font color =#fffff>
<Input type = nama teks = searchText ukuran = 22>
<Input type = centang name = case>
Sangat sensitif </font> </td>
<TD ROWSPAN = 3 Lebar = 10>
<Input Tipe = Kirim Nilai = OK>
<p>
<Input Tipe = Reset Nilai = Clear>
</td>
<Td rowspan = 3 bgcolor =#cc6633 lebar = 28> </td>
</tr>
<tr>
<Td width = 363 nowrap> <font color =#fffff> hasil pengembalian
<Pilih Nama = Rlength>
<Nilai opsi = 200 dipilih> Pesan Panjang </tion>
<Nilai opsi = 100> Pesan Singkat </pection>
<Opsi value = 0> Return hanya ke koneksi </pection>
</Pilih>
<Pilih Nama = RReSult>
<Nilai opsi = 10 dipilih> 10
<Nilai opsi = 25> 25
<Nilai opsi = 50> 50
</Pilih>
</font>
</td>
</tr>
<tr>
<Td width = 363 nowrap> <font color =#fffff> harus termasuk:
<Input type = centang name = iImage>
gambar
<Input type = name kotak centang = izip>
Format zip
<Input type = centang nama kotak = Ijavas> javascript
</font>
</td>
</tr>
</boable>
</form>
</penter>
<Dl>
<dd> </dd>
</ll>
</body>
</html>
-------------------------------------------------------------------------
Program ASP yang menampilkan hasil
search.asp
<Html>
<head>
Hasil pencarian untuk <title> '<%= request (searchText)%>' </iteme>
</head>
<body>
Hasil pencarian untuk <b> '<%= request (SearchText)%>' </b> <br>
<%
Const fsoforreading = 1
Redup objfile, objolder, objsubfolder, objtextstream
Bolcase redup, bolfilefound, boltagfound
Redup strcount, strdetag, strext, strfile, strcontent, strroot, strtag, strtext, strtitle, strtitlel