List controls

A

Adds

Hello,

I'm attemping to create a user control which contains list items, somewhat
like asp:DropDownList.

I want my HTML to look like this:

<test:mainControl runat="server">
<test:subControl value="1" runat="server">One</test:subControl>
<test:subControl value="2" runat="server">Two</test:subControl>
<test:subControl value="3" runat="server">Three</test:subControl>
</test:mainControl>

With any number of "subControl"'s defined.

I'm at a loss as to how to create this. Can anyone point me in the
direction of an example, or help me out? (vb or C#, I don't mind).

The idea of the control is to create a menu, where each item in the menu is
defined within the aspx page.

Thanks,
A.
 

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

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top