Click to See Complete Forum and Search --> : Clear doubles in listbox


Diedtje
08-26-2005, 07:43 AM
Hi

I have populated a asp:listbox with some text and values. But sometimes I have duplicate values. How Do i delete the double values in my listbox?

use a foreacch or something????

thx

Memnoch
08-26-2005, 10:34 AM
How are you populating it? from a database?
If so, then use a DISTINCT in your sql query.