Isn't it just easier to bind your employee id as the Value of the Dropdownlist item, and their name as the Text of the Dropdownlist item.
You can receive the name of the dropdownlist by:
dropdownlistname.SelectedItem.Text
And the value of the dropdownlist selected item by:
dropdownlistname.SelectedItem.Value
So a simple:
Dim strEid As String = dropdownlistname.SelectedItem.Value
should do the trick as long as the item's value is the Eid.
SheSaidImaPregy
Veteran Poster
1,080 posts since Sep 2007
Reputation Points: 43
Solved Threads: 68