Bonjour,

J'essaie de créer une zone de liste déroulante récupérant des informations de ma base de données.

J'ai créé pour cela une dropdownlist reliée à une sqldatasource.

System.Data.DataRowView
Voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
			<asp:DropDownList
				id="IdentificationList"
				runat="server"
				DataSourceID="SqlDataSourceNom">
			</asp:DropDownList>
 
			<asp:SqlDataSource 
				id="SqlDataSourceNom" 
				runat="server" 
				ConnectionString="<%$ ConnectionStrings:myConnectionString %>" 
				SelectCommand="SELECT nom FROM Identificaton ORDER BY nom">
			</asp:SqlDataSource>
Merci d'avance