<%@ 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">
    			<div>
        			<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataSourceMode="DataSet" DataFile="C:\Livro\Capitulo7\Northwind.mdb" SelectCommand="SELECT CódigoDoFornecedor, NomeDaEmpresa FROM Fornecedores WHERE CódigoDoFornecedor Between ? And ?;">
            					<SelectParameters>
                					<asp:QueryStringParameter Name="Bparam" Type="Int32" DefaultValue="1" QueryStringField="ID" />
                					<asp:QueryStringParameter Name="Andparam" Type="Int32" DefaultValue="10" QueryStringField="ID1" />
            					</SelectParameters>
        			</asp:AccessDataSource>
        			<asp:ListBox ID="ListBox1" Rows="8" DataSourceID="AccessDataSource1" DataTextField="NomeDaEmpresa" DataValueField="CódigoDoFornecedor" runat="server"></asp:ListBox>
        			<br />
        			<br />
    			</div>
    			<asp:HyperLink ID="HyperLink1" NavigateUrl="~/AccessDataSourceParams.aspx?ID=1&ID1=50" runat="server">CódigoDoFornecedor entre 1 e 50</asp:HyperLink>
    			</form>
	</body>
</html>
