Hi there,

I have a dropdownlist at the top pf my page I wish to be populated so that all the values are a particular column from my SQL query and all the text valeus ie what the user sees are from another column.

I have set up the connetion and a datatable ok, i think but am having problems. my code:

VB Code:
  1. Dim myTable As New DataTable("myContactsTable")
  2.                       Dim myOtherTable As New DataTable("myDDLTable")
  3.                       objDataSet.Tables.Add(myTable)
  4.                       objDataSet.Tables.Add(myOtherTable)
  5.  
  6.                       myContacts.DataSource = objDataSet.Tables("myContacts")
  7.                       myContacts.DataBind()
  8.  
  9.                       myDDL.DataSource = myOtherTable
  10.                       myDDL.DataBind()
  11.  
  12. ... then later on :
  13.  
  14. <asp:DropDownList id="myDDL" runat="server"
  15.         DataValueField='Container.DataItem("countryCode")'
  16.             DataTextField='Container.DataItem("country")'
  17.         AutoPostBack="True">
  18.  
  19. </asp:DropDownList>

All I get is a blank dropdown list on the page can anyone help me?

thanks,

beNcooKe