Quote Originally Posted by chunk
but why it does not work
Code:
<asp:ListBox
          id="ListBox1"
          runat="server"
          DataSourceID="SqlDataSource1">
      </asp:ListBox>
just shows
System.Data.Common.DbDataRecord
in Listbox
Hey,

Have a look at the following:

http://msdn.microsoft.com/en-us/libr...77(VS.80).aspx

I believe you need to set the DataTextField and the DataValueField properties.

Gary