I came across a small problem.I have a hash table code in which the "KEY" field contains words/strings instead of numbers.Mean while i have a html/apsx page with a "TEXT BOX" field where i give some words as input.Now the task is to compare the words given as input by me and the words in that exist hash table.The matched words data in hash table are to retrieved as output(In other words ,if any match found ,the values in the "VALUE" field of the hash table are to be retrieved).
Could you please provide me a code?
Or else could you please suggest me a way so i could work on it?
Thank you !!
Comparsion
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Biswa Pujarini MohapatraRank #463 · 5.4K pointsPosted Jan 23, 2014, 11:25 PM EST
static Hashtable GetHashtable() { // Create and return new Hashtable. Hashtable hashtable = new Hashtable(); hashtable.Add("one", "test"); hashtable.Add("two", 55); hashtable.Add("three", 540); return hashtable;