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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="NorthwindDataContext"
            EntityTypeName="" TableName="Products">
        </asp:LinqDataSource>
        <asp:QueryExtender ID="QueryExtender1" TargetControlID="LinqDataSource1" runat="server">
            <asp:OrderByExpression DataField="UnitPrice" Direction="Ascending">
                <asp:ThenBy DataField="ProductID" Direction="Descending" />                
            </asp:OrderByExpression>
        </asp:QueryExtender>       
        <asp:GridView ID="GridView1" runat="server" DataSourceID="LinqDataSource1" AllowPaging="true">
            <EmptyDataTemplate>
                <asp:Label ID="Label1" Text="<p/>Nenhum registro encontrado." runat="server" />
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
