2.0: DropDownList incorrectly filled

  • Thread starter Thread starter RAM
  • Start date Start date
R

RAM

Hi,

Please help in the following problem with asp:DropDownList.

I have written in .aspx:

<asp:SqlDataSource ID="ListOfMaterials" runat="server" ConnectionString="<%$
ConnectionStrings:MIMStockDemo %>" SelectCommand="SELECT Name FROM Materials
ORDER BY Name" />

<asp:DataList ID="PositionsDataList" runat="server"> ...

<EditItemTemplate>

<td><asp:DropDownList ID="MaterialsEdit" runat="server"
DataSourceID="ListOfMaterials" /></td> ...

(SQL Server table Materials is fillled with some data)

I don't understand why in a browser my DropDownList contains sequence of
entries "System.Data.DataRowView" instead of values from Name column.
Connection string is correct (it works fine in other places.)

/RAM/
 
Back
Top