clear the listBox

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

I have asp:listBox and I tried:

lstAdvPos.ClearSelection()

lstAdvPos.DataSource = Nothing
lstAdvPos.DataBind()

lstAdvPos.Dispose()

Nothing helps, listBox is still full.

How can I clear it, delete all items from it?

Thank you,

Simon
 
Back
Top