W
wapsiii
I have a form to which I add sets of input controls ie. textbox 1,
dropdownlist 1, textbox 2, dropdownlist 1, textbox 3, dropdownlist 3.
The number of sets vary.
I give them unique IDs the following way: txt_1, ddl_1, txt_2, ddl_2,
txt_3, ddl_3.
When the form is submitted I retrieve the values of the dynamically
added controls by iterating over the request.form collection looking
for IDs txt_ and ddl_
Is there a better way to retrieve the values?
Morten
dropdownlist 1, textbox 2, dropdownlist 1, textbox 3, dropdownlist 3.
The number of sets vary.
I give them unique IDs the following way: txt_1, ddl_1, txt_2, ddl_2,
txt_3, ddl_3.
When the form is submitted I retrieve the values of the dynamically
added controls by iterating over the request.form collection looking
for IDs txt_ and ddl_
Is there a better way to retrieve the values?
Morten