Hash Table - Form Values

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know if it is possible to collect all the values of a form and
place them into a Hash table. Would save a lot of time referencing the form
elements for their value!
 
P1ayboy said:
Does anyone know if it is possible to collect all the values of a form and
place them into a Hash table. Would save a lot of time referencing the
form
elements for their value!

What do you define as "form values"?
 
P1ayboy said:
Such as the text in textbox, or whether an checkbox is checked.

There is no simple way to do it. You could write a method that would search
for all of them in the Controls collection, but that is about it.
 
I was sure that I had once read somewhere that .net had a function that did
this for you. Never mind. Maybe we can ask for it in the next version. I'm so
lazy!

Thanks Daniel.
 
Back
Top