实现站内全文检索功能
声明性语法
<stl:fullTextSearch pageNum="数字" runat="server"> <Template> <!-- 任意HTML代码 --> <asp:Label ID="SearchInfo" runat="server"/> <!-- 任意HTML代码 --> <asp:Label ID="Results" runat="server"/> <!-- 任意HTML代码 --> <asp:Label ID="Pages" runat="server"/> <!-- 任意HTML代码 --> <asp:Label ID="BottomSearchForm" runat="server"/> <!-- 任意HTML代码 --> </Template> </stl:fullTextSearch>
属性列表
下表显示所有属于此元素的属性列表。
属性 可能的取值 默认值 简介 pageNum 10 搜索页面每页显示的结果数目
注意
注意:如果站内检索不能够使用,请重新建立索引。
<asp:Label ID="SearchInfo" runat="server"/>代表搜索结果摘要
<asp:Label ID="Results" runat="server"/>代表搜索结果
<asp:Label ID="Pages" runat="server"/>代表搜索翻页
<asp:Label ID="BottomSearchForm" runat="server"/>代表底部搜索框
以上标签对应的显示内容如下图所示:全文检索动态元素用例请参见 stl:fullTextSearch 示例
版权所有 © 2007 百容软件.
保留所有权利。