sample1.aspx
来自「一个不错的站内搜索源代码」· ASPX 代码 · 共 31 行
ASPX
31 行
<%@ Page %>
<%@ Register TagPrefix="uc1" TagName="SearchControl" Src="SearchControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="EasySearchResults_DataGrid" Src="EasySearchResults_DataGrid.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>EasySearch Sample 1 :: DataGrid Results</title>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="easysearchasp.css" type="text/css">
</HEAD>
<body marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0"
bgcolor="#ffffff">
<form runat="server" ID="SearchForm">
<P>Sample 1 :: This EasySearchASP sample contains the use of two user controls. The
first SearchControl, is responsible for rendering a Textbox, that allows the
end user to type in the content they would like to search for.</P>
<P>
<uc1:SearchControl id="SearchControl"
ResultsPageUrl="Sample1.aspx?Search={0}"
IncludeEnterPostBack="false"
runat="server" /></P>
<P>The Second control is the EasySearchResults_DataGrid control. EasySearch Results
are returned in a datatable, so it's easy to bind the results against a number
of controls, which we'll see in the next few examples.</P>
<h1>Results</h1>
<uc1:EasySearchResults_DataGrid id="EasySearchResults_DataGrid1" runat="server" />
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?