Hi all,
I've seen a lot of examples of creating one set of dynamic controls that use ViewState to retain information across a PostBack, but I've yet to find something to handle the more general case of several sets of controls.
For example, suppose I have a web survey asking for your favorite appetizers, favorite entrees and favorite desserts. I guess I could create 1000 textboxes for each category and call it a day, but that would seem an inelegant approach. I was thinking along the lines of initially having one textbox and one button for each course. You would enter your utmost favorite dessert, for instance, in the dessert textbox and by pressing the dessert button another dessert textbox would appear for your second most favorite dish, and so forth. The other courses would act similarly. At the bottom of the page would be the usual button that submits the page for the final processing of your answers.
Does anyone have any ideas how to do thi ...
Go to the complete details ...