📄 easysearchresults_repeater.ascx
字号:
<%@ Control Language="c#" AutoEventWireup="false" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" Inherits="EasySearchModule.SearchResults" %>
<asp:Literal ID="DocumentationLiteral" Runat="server" Visible="False">
The only thing required for the repeater to work, is that the
ID is set to "EasySearchResultsRepeater" and that this control
inherits from SearchModule.SearchResults.
If you need to add additional code to this page, you can do so
in a standard code behind file, but the code behind file must
then inherit from SearchModule.SearchResults.
Available Columns Are:
-- Title
-- Description
-- Body
-- Url
-- Size
-- Weight (relavancy to search term)
</asp:Literal>
Search Phrase: <%=this.SearchPhrase%><br/>
Items Per Page: <%=this.ItemsPerPage%><br /> (O=All)
Results: <%=this.SearchResultCount%><br />
Message: <%=this.SearchResultsMessage%><br />
<asp:Repeater id="EasySearchResultsRepeater" runat="server">
<ItemTemplate>
<p>
<div class="SearchResult">
<div class="SearchResultTitle">
<asp:HyperLink id="ResultsTitleHyperLink" Runat="server" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "Url")%>'>
<%#DataBinder.Eval(Container.DataItem, "Title")%>
</asp:HyperLink>
</div>
<div class="SearchResultDesc">
<%#DataBinder.Eval(Container.DataItem, "Description")%>
</div>
<div class="SearchResultUrl">
<%#DataBinder.Eval(Container.DataItem, "Url")%>
</div>
</div>
</p>
</ItemTemplate>
<AlternatingItemTemplate>
<p>
<div class="SearchResultAlt">
<div class="SearchResultTitle">
<asp:HyperLink id="AltResultsTitleHyperLink" Runat="server" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "Url")%>'>
<%#DataBinder.Eval(Container.DataItem, "Title")%>
</asp:HyperLink>
</div>
<div class="SearchResultDesc">
<%#DataBinder.Eval(Container.DataItem, "Description")%>
</div>
<div class="SearchResultUrl">
<%#DataBinder.Eval(Container.DataItem, "Url")%>
</div>
</div>
</p>
</AlternatingItemTemplate>
</asp:Repeater>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -