<%@ 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="Customers">
        </asp:LinqDataSource>
        <asp:QueryExtender ID="QueryExtender1" TargetControlID="LinqDataSource1" runat="server">
            <asp:SearchExpression SearchType="StartsWith" DataFields="CompanyName, ContactName">
                <asp:ControlParameter ControlID="SearchTextBox" />
            </asp:SearchExpression>            
        </asp:QueryExtender>
        Procurar:
        <asp:TextBox ID="SearchTextBox" runat="server" Width="205px" />
        <asp:Button ID="Button1" runat="server" Text="Procurar" />
        <asp:GridView ID="GridView1" runat="server" DataSourceID="LinqDataSource1" AllowPaging="true">
            <EmptyDataTemplate>
                <asp:Label Text="<p/>Nenhum registro encontrado." runat="server" />
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
