検索エンジンは、HTMファイルとASPファイルで構成されています。主にFilesystemObjectコンポーネントを使用して目的を達成します。強力な機能を備えており、インターフェイスを変更した後に直接使用できます。もちろん、あなた自身のものを少し追加する方がさらに良いです。
searchpage.htm
このHTMファイルは、状態を渡すために使用されます
<html>
<head>
<Title> ASP検索エンジンの例</title>
</head>
<body>
<center>
<form method = post action = search.asp>
<表BGCOLOR =#CC6633 Border = 0>
<tr>
<td rowspan = 3 bgcolor =#cc6633 width = 21 nowrap> </td>
<td width = 363 nowrap> <font color =#fffff>
<入力タイプ=テキスト名= SearchText Size = 22>
<入力タイプ=チェックボックス名= case>
非常に敏感</font> </td>
<td rowspan = 3 width = 10>
<入力タイプ=送信値= OK>
<p>
<入力タイプ=リセット値= clear>
</td>
<td rowspan = 3 bgcolor =#cc6633 width = 28> </td>
</tr>
<tr>
<td width = 363 nowrap> <font color =#fffff> return result
<name = rlength>を選択します
<オプション値= 200選択>ロングメッセージ</option>
<オプション値= 100>短いメッセージ</option>
<オプション値= 0>接続のみに戻ります</option>
</select>
<name = rresults>を選択します
<オプション値= 10選択> 10
<オプション値= 25> 25
<オプション値= 50> 50
</select>
</font>
</td>
</tr>
<tr>
<td width = 363 nowrap> <font color =#fffff>を含める必要があります。
<入力タイプ=チェックボックス名= iimage>
写真
<入力タイプ=チェックボックス名= izips>
zip形式
<入力タイプ=チェックボックス名= ijavas> javascript
</font>
</td>
</tr>
</table>
</form>
</center>
<dl>
<dd> </dd>
</dl>
</body>
</html>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
結果を表示するASPプログラム
search.asp
<html>
<head>
<title> '<%= request(searchText)%>' </title>の検索結果
</head>
<body>
<b> '<%= request(searchText)%>' </b> <br>の検索結果
<%
const fsoforreading = 1
Dim objfile、objfolder、objsubfolder、objtextStream
Dim Bolcase、Bolfilefound、Boltagfound
dim strcount、strdetag、strext、strfile、strcontent、strroot、strtag、strtext、strtitle、strtitlel