Jake,
Set the DataSource of the ListBox to be the DataSet.
Set the DataTextField to be "VALUE" (or whatever the column is called in the
DataSet).
Set the DataValueField to be "ID" (or whatever the column is called in the
DataSet).
Ensure DataBind() is called on the ListBox.
You can then access the current ID in the SelectedIndexChanged event handler
(for example) of the ListBox via the SelectedValue property.
Hope this helps,
--
Edd Connolly
MCP 70-315
"Jake" <ro******@hotmail.com> wrote in message
news:uk**************@TK2MSFTNGP11.phx.gbl...
Hello,
I have a web page that has a listbox. I want to populate the listbox
based upon the dataset that is returned from a webservice. The data set
returns two columns of data. The first column is the ID and the second
column is the VALUE. How can I populate the list box with the VALUE and if
clicked use the ID? Thanks in advance.
Jake