<%@ Page Language="C#" %>
<html>
	<head id="Head1" runat="server">
		<title>Exemplo com os controles DropDownList e SqlDataSource</title>
	</head>
	<body>
		<form id="form1" runat="server">
			<div>
				<asp:SqlDataSource
					id="SqlDataSource1"
					runat="server" ProviderName="System.Data.SqlClient" DataSourceMode="DataReader"
					ConnectionString="<%$ ConnectionStrings:nwind%>"
					SelectCommand="SELECT ProductID, UnitPrice FROM Products">
				</asp:SqlDataSource>
				<asp:DropDownList ID="DropDownList1" runat="server" 
				DataSourceID="SqlDataSource1" DataTextFormatString="{0:C}" 
				DataTextField="UnitPrice" DataValueField="ProductID">
				</asp:DropDownList>
			</div>
		</form>
	</body>
</html>

