Bonjour,
lors de l'exècution de mon code une erreur que j'arrive pas a resoudre s'affiche dans la page web :
Erreur :
Code :The DataSourceID of 'DropDownList9' must be the ID of a control of type IDataSource. A control with ID 'SqlDataSource1' could not be found.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 <tr><td> Statut</td><td> <asp:DropDownList ID="DropDownList9" runat="server" DataSourceID="SqlDataSource1" DataTextField="Statut" DataValueField="StatutID" SelectedValue='<%# Bind("Statut") %>'> </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:EPMConnectionString %>" SelectCommand="SELECT * FROM [TStatut]"></asp:SqlDataSource> <br /> </td></tr>
Partager