<%@ Page Language="C#"%>
<html>
	<body>
		<form id="form1" runat="server">
			<div>
				<asp:SqlDataSource
					id="SqlDataSource1"
					runat="server" ProviderName="System.Data.SqlClient"
					DataSourceMode="DataReader"
					ConnectionString="<%$ ConnectionStrings:nwind%>"
					SelectCommand="SELECT CustomerID, CompanyName FROM Customers 
					WHERE (CustomerID=@ID)">
					<SelectParameters>
						<asp:QueryStringParameter Name="Id" Type="String" 
						DefaultValue="ALFKI" QueryStringField="Id" />
					</SelectParameters>
				</asp:SqlDataSource>

				<asp:DropDownList ID="DropDownList1" runat="server" 
					DataSourceID="SqlDataSource1" DataTextField="CompanyName">
				</asp:DropDownList>
			   <br />
				<br />
				Clique nos links a seguir:<br />
				<br />
			</div>
		   <asp:HyperLink ID="HyperLink1" NavigateUrl="~/UsandoParametros.aspx?id=ANATR" runat="server">ANATR</asp:HyperLink>
			<br />
			<asp:HyperLink ID="HyperLink2" NavigateUrl="~/UsandoParametros.aspx?id=CACTU" runat="server">CACTU</asp:HyperLink>
			<br />
			<asp:HyperLink ID="HyperLink3" NavigateUrl="~/UsandoParametros.aspx?id=GROSR" runat="server">GROSR</asp:HyperLink>
		</form>
	</body>
</html>

