ASP controls such as radioobuttonlist and checkboxlist exist, and you can bind them to a database query. This is great for creating dynamic user interaction lists. What I'm trying to do is create a list of text fields in the same way. A list of text fields that behave the same.
The object must have a checkboxlist that is created through datasource / database. When the user finishes selecting items from this list, click the button. This list is hidden (using jquery), and a new list is created based on their selection. However, the new list is now a list of their options, followed by an empty text box. The user fills in the text fields for each record and sends it again, which binds it to the database.
SO:
checkbox - description checkbox - description checkbox - description checkbox - description
becomes:
Description - Textbox Description - Textbox
The reason I'm looking for a list type control is because I can ultimately skip it to send to the database using linq. Does this make sense? My real question is whether there is still such control. I gave a full description in case anyone has other ideas besides creating a custom control.
source share