Bonjour
J’ai deux DropDownList,
Le premier est :
Le deuxième je voudrai l'alimenter par une requête qu'a comme paramètre le champ [type] de mon premier.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <asp:DropDownList ID="DdlChamp" runat="server" AutoPostBack="True" DataSourceID="SDRecherche" DataTextField="libelle" DataValueField="rubrique" ></asp:DropDownList> <asp:SqlDataSource ID="SDRecherche" runat="server" ConnectionString="<%$ ConnectionStrings:GestComConn %>" SelectCommand="SELECT [rubrique], [libelle], [type] FROM [critere] WHERE ([fichier] = @fichier)"> <SelectParameters> <asp:Parameter DefaultValue="client" Name="fichier" Type="String" /> </SelectParameters> </asp:SqlDataSource>
Comment je peux procéder
Merci d'avance
Partager