2.0: DropDownList incorrectly filled

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top