Elegant algorithm.

V

Vladimir

Recently I was faced with the necessity to build some algorithm in order to
check the values of registration form and build request to some remote
object. However many fields had been filled, the restrictions to this
request was to allow to send only one parameter whithin all the entry and I
decided to approve the first entered parameter from the top in the set of
textboxes.

My idea was to iterate through all control collection of definite
placeholder (or form, or any container) and clean all the entered values
except first. Than add all entred values to the request including empty "".
I can show my code if somebody will be interested, but I would like to ask
you if anybody has some nice ideas how to make it otherwise, may be more
elegant?

Vladimir

P.S.
While my research I tried to add all values to the Hashtable and run through
it but there where some problems with getting values of an element of
Hashtable instance's Values collection.
 

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,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top