runat="server"
ProviderName="System.Data.SqlClient"
ConnectionString="<%$ ConnectionStrings:Northwind %>"
SelectCommand="SELECT CustomerID, ContactName FROM Customers"/>
runat="server"
DataSourceID="sourceCustomers"
DataTextField="ContactName"
DataValueField="CustomerID"
AutoPostBack="True">
runat="server"
ProviderName="System.Data.SqlClient"
ConnectionString="<%$ ConnectionStrings:Northwind %>"
SelectCommand="SELECT OrderID,OrderDate,ShippedDate FROM Orders WHERE CustomerID=@CustomerID AND OrderDate>=@EarliestOrderDate"
OnSelecting="sourceOrders_Selecting">
runat="server"
DataSourceID="sourceOrders"
AutoGenerateColumns="False"
DataKeyNames="OrderID" >
InsertVisible="False"
ReadOnly="True"
SortExpression="OrderID">
SortExpression="OrderDate">
HeaderText="ShippedDate"
SortExpression="ShippedDate">