I'm dynamically generating an asp form, and I would like to add the label and input elements inside a list.
For example, I would like to end up with something like:
<ul>
<li><label for="input"/><input id=input"/></li>
</ul>
To do this, I create a Label object and a TextBox object, then assign the AssociatedControlId property of the Label to link these. But I cannot add any of these in a ListItem, nor can I add these in the Controls collection of BulletedList...
Any ideas would be greatly apreciated.