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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top