当前位置: 首页 > 图文教程 > 网络编程 > ASP > 用asp怎样编写文档搜索页面(4)

ASP
用ASP编写网络传呼机
用ASP+CSS实现随机背景
ASP下载系统防盗链方法
用ASP编写下载网页中所有资源的程序
Request.ServerVariables应用
解决Asp程序的Server.CreateObject错误
ASP实现TCP端口扫描的方法
源码实例:ASP实现远程保存图片
用ASP+DLL实现WEB方式修改服务器时间
ASP使用MySQL数据库全攻略
ASP+SQL Server构建网页防火墙
教程/ASP 十天学会ASP之第二天
教程/ASP 十天学会ASP之第四天
教程/ASP 十天学会ASP之第五天
教程/ASP 十天学会ASP之第六天
教程/ASP 十天学会ASP之第七天
教程/ASP 十天学会ASP之第八天
教程/ASP 十天学会ASP之第九天
教程/ASP 十天学会ASP之第十天
关于学习ASP和编程的28个观点

ASP 中的 用asp怎样编写文档搜索页面(4)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 20 ::
收藏到网摘: n/a

  td valign="top"><code>@contents apple tree</code></td>
<td valign="top">同上</td>
</tr>
<tr>
<td valign="top"><code>Microsoft and @size > 1000000</code></td>
<td valign="top">包含单词“Microsoft”,并且大于大于一兆字节的页</td>
</tr>
<tr>
<td valign="top"><code>"microsoft and @size > 1000000"</code></td>
<td valign="top">包含指定短语的页(与上面不同)</td>
</tr>
<tr>
<td valign="top"><code>#filename *.avi</code></td>
<td valign="top">视频文件(因为查询包含正则表达式,所以使用 # 前缀)</td>
</tr>
<tr>
<td valign="top"><code>@attrib ^s 32</code></td>
<td valign="top">带存档属性的页</td>
</tr>
<tr>
<td valign="top"><code>@docauthor = John Smith</code></td>
<td valign="top">由所给作者创作的页</td>
</tr>
<tr>
<td valign="top"><code>$contents why is the sky blue?</code></td>
<td valign="top">匹配查询的页</td>
</tr>
<tr>
<td valign="top"><code>@size < 100 & #filename *.gif</code></td>
<td valign="top">大于 100 字节的 GIF 文件</td>
</tr>
</table>

<h1><a name="PropertyNamesList">属性名列表</a></h1>

<p>这些属性在查询时都可用,附加的属性要看 Web 服务器的配置。</p>

<table border="1" cellpadding="4" cellspacing="1" width="100%">
<tr>
<th align="Left" valign="bottom" bgcolor="#C0C0C0" width="15%">友好名称</th>
<th align="Left" valign="bottom" bgcolor="#C0C0C0" width="20%">数据类型</th>
<th align="Left" valign="bottom" bgcolor="#C0C0C0" width="65%">属性</th></tr>
<tr>
<td valign="top">A_HRef</td>
<td valign="top">DBTYPE_WSTR |
DBTYPE_BYREF</td>
<td valign="top" width=65%>HTML HREF 的文字,该属性名由 Microsoft&reg; Site Server 创建,与 Index Server 属性名 HtmlHRef 相对。可以查询,但不能检索。</td>
</tr>
<tr>
<td valign="top">Access</td>
<td valign="top">VT_FILETIME</td>
<td valign="top" width=65%>文件的最后访问时间。</td>
</tr>
<tr>
<td valign="top">All</td><td valign="top">(不适用)</td>
<td valign="top" width=65%>搜索字符串的每一个属性。可以查询,但不能检索。</td>
</tr>
<tr>
<td valign="top">AllocSize</td><td valign="top">DBTYPE_I8</td>
<td valign="top" width=65%>为文件分配的磁盘大小。</td>
</tr>
<tr>
<td valign="top">Attrib</td><td valign="top">DBTYPE_UI4</td>
<td valign="top" width=65%>文件属性,在 Win32 SDK 文档中说明。</td>
</tr>
<tr>
<td valign="top">ClassId</td><td valign="top">DBTYPE_GUID</td>
<td valign="top" width=65%>对象的类标识,例如 WordPerfect、Word 等等。</td>
</tr>
<tr>
<td valign="top"><a name="Characterization">Characterization</a></td><td valign="top">DBTYPE_WSTR |
DBTYPE_BYREF</td>
<td valign="top" width=65%>文档的描述或摘要,由 Inde