Asp.Net renders server control ListBox as certain html element rendered by
the client browser. Datasource and databinding is needed to fill up the
element properties. These properties are the text and the value of the items
that the listbox contains. They are taken from the datasource fields. Other
fields that the datasource contains are not needed for the listbox
functionality. They are not available via the listbox.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
<walantawrote in message
news:jn********************************@4ax.com...
I'm not sure I understand your second sentence.
Could you give me an quick example or point me to where I can get the
information or example? Thanks!!!
On Sun, 27 Aug 2006 12:19:38 +0200, "Eliyahu Goldin"
<RE**************************@mMvVpPsS.orgwrote:
>>ListBox is able to bind only to 2 fields from the datasource: one for the
text and another for the value. It has no idea about any other fields.
You
can use the selected item to find the row for the item in the datasource
and
get other fields from the datasource itself.