How can I remove duplicates from an ArrayList?

C

Chuck Insight

Hi Alvin,
I am unfamiliar with what a hash table is let alone how to populate it.
I use the .ADD("") method populate an ArrayList, how do I populate these
tables?
Please name a few WEB Controls that can display the contents of the table.
And finally, what should I do when this kind of error occurs?
Thanks for helping a rank beginner become better.
Chuck
 
C

Chuck Insight

Thanks Alvin, I'll work at this for a while.

Alvin Bruney said:
roughly
Hashtable table = new Hashtable();
table["Key"] = str;

//exception here duplicate
table["Key"] = str;

string str = (string)table["Key"];

//load data
foreach(string str in Hashtable)
DropDownList1.Add(str);

Consult your help system for more details.

--
Regards,
Alvin Bruney

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
 

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

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top