title: hashtable in asp.net
body: <p>1.I want to display each record of hashtable in label but i am unable to apply for each loop in hash table.<br> 
  2.why we use hashtable instead of data table.<br></p>
  
  <pre><code>int key;
  string name = string.Empty;
  string str = string.Empty;
  
  Hashtable hashtable = new Hashtable();
  key = 1;
  name = "A";
  hashtable.Add(key,name);
  key = 2;
  name = "B";
  hashtable.Add(key,name);
  key = 3;
  name = "lily";
  hashtable.Add(key,name);
  </code></pre>