1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<asp:DropDownList ID="DropDownList2" runat="server"
DataSourceID="SqlDataSource2" DataTextField="FAMILLE" DataValueField="FAMILLE">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:Base-Ets-MtiriConnectionString %>"
SelectCommand="SELECT [FAMILLE] FROM [ARTICLE]"></asp:SqlDataSource>
Désignation d'article
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="SqlDataSource1" DataTextField="DESIG" DataValueField="DESIG">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Base-Ets-MtiriConnectionString %>"
SelectCommand="SELECT [DESIG] FROM [ARTICLE] WHERE ([FAMILLE] = @FAMILLE)">
<SelectParameters>
<asp:FormParameter FormField="DropDownList2" Name="FAMILLE" Type="String" />
</SelectParameters>
</asp:SqlDataSource> |