⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 easysearchresults_datagrid.ascx

📁 一个不错的站内搜索源代码
💻 ASCX
字号:
<%@ Control Language="c#" AutoEventWireup="false" Inherits="EasySearchModule.SearchResults" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<asp:Literal ID="DocumentationLiteral" Runat="server" Visible="False">
	The only thing required for the datagrid to work, is that the
	ID is set to "EasySearchResultsDataGrid" 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.
</asp:Literal>
<asp:DataGrid id="EasySearchResultsDataGrid" runat="server" BorderWidth="0" BackColor="White"
	CellPadding="3" AutoGenerateColumns="False">
	<FooterStyle CssClass="ResultsFooter" />
	<HeaderStyle CssClass="ResultsHeader" />
	<PagerStyle CssClass="ResultsPaging" Mode="NumericPages" NextPageText="Next" PrevPageText="Previous"
		PageButtonCount="10" />
	<AlternatingItemStyle CssClass="SearchResultAlt" />
	<ItemStyle CssClass="SearchResult" />
	<Columns>
		<asp:TemplateColumn>
			<HeaderTemplate>
				Search Phrase:
				<%=this.SearchPhrase%>
				<br>
				Results:
				<%=this.SearchResultCount%>
				<br>
			</HeaderTemplate>
			<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>
		</asp:TemplateColumn>
	</Columns>
</asp:DataGrid>
<div class="SearchResultsPageXofYMessage">
	<%=this.PagingXofYMessage%>
</div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -