SearchDocuments/sort.aspx

                

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<h3>
文档的基本属性排序</h3>
查询发表的编号为 1 的文章并按文章的发表日期升序排序
<pz:SearchDocuments ID="SearchDocuments1" runat="server" Path="/sample/news/" PageSize="10">
<HeaderTemplate>
<table width="500" border="1">
<tr>
<th>
新闻标题</th>
<th>
发表日期</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%# Eval("subject") %>
</td>
<td>
<%# Eval("createdate") %>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table></FooterTemplate>
<Where>
document.userID= 1
</Where>
<Sorts>
<pz:Sort SortBy="createdate" SorOrder="Ascending" />
</Sorts>
</pz:SearchDocuments>
</form>
</body>
</html>