hey guys i m new to .net and facing one problem
on click of a button (saving the data to the hash table)
like this :
there are 7 textboxes and first textbox1.text is the key for hash table n all other textbox.text are values which are stored in an object type array.......... .
object[] obj = { textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, textBox6.Text };
ht.Add(textBox1 .Text,obj);
after save ---- all textboxes.text is set to blank so that user can either enter next values or can find out information of another paricular record......... .(function like find or search a record)
now on click of another button i want to access values from hash table.......... ....
which are to be displayed in the 7 textboxes ............ on the same form
(this is the function of searching a record and displaying its content)
i was using like : if(ht.ContainsK ey(textbox7.tex t))
{
////////////// blah blah blah
}
please solve this blah blah blah........... .............
on click of a button (saving the data to the hash table)
like this :
there are 7 textboxes and first textbox1.text is the key for hash table n all other textbox.text are values which are stored in an object type array.......... .
object[] obj = { textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, textBox6.Text };
ht.Add(textBox1 .Text,obj);
after save ---- all textboxes.text is set to blank so that user can either enter next values or can find out information of another paricular record......... .(function like find or search a record)
now on click of another button i want to access values from hash table.......... ....
which are to be displayed in the 7 textboxes ............ on the same form
(this is the function of searching a record and displaying its content)
i was using like : if(ht.ContainsK ey(textbox7.tex t))
{
////////////// blah blah blah
}
please solve this blah blah blah........... .............
Comment