Guys,

I have a dropdown list and a listbox on a user control. The ddlist is populated with UK regions. When the selecteditem is changed, I want to populate the listbox with staff in that region. I have a button (refresh) on screen that should take the selecteditem.text and return matching staff into the lbo.

Why doesn't this work ? Everytime I refresh it is returning staff, but just those that match the first item in the list.

Thanks
Bob

VB Code:
  1. Private Sub refresh_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles refresh.Click
  2.         'Get staffnames by region
  3.         Dim str_Region As String = staffRegion.SelectedItem.Text 'ddlist
  4.  
  5.        
  6.         Dim Source As New DataTable
  7.         Source = CType(Application("Staff"), DataTable)
  8.  
  9.         For Each row As DataRow In Source.Rows
  10.             If row("RegionName") = str_Region Then
  11.                 Me.StaffList.Items.Add(New ListItem(row("FullName"), row("id")))
  12.             End If
  13.         Next
  14.  
  15.     End Sub