Hi,
Cause they are still in the control, the binding in web do not work the
same as in windows, what you can do is this:
Set the datasource= null
Call listbox.DataBind()
this should delete all
opposite what you can do if the above does not work ( very unlikely ) is
bind it to an empty collection/array, etc
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"kids_pro" <ki******@yahoo.com> wrote in message
news:O3*************@TK2MSFTNGP12.phx.gbl...
Hi,
On form_load() I bind a combobox to a dataset and listbox to a datatable.
When I want to unbind it I call comboBox1.DataSource = null,
listBox1.DataSource = null
It unbind but the Items still persist in the comboBox and listBox. I
expect it to be empty list.
Can anyone tell me how to unbind the comboBox and automatically clear it
items?
Regards,
kids