Basically I have a set of users (grabbed from a database), For each user one of those little panels is created (I showed 2). Each panel consists of a button to delete that user. A list box that has some values, a button to add to the listbox, one to delete from the list box and a third that does something in the "STUFF" section.
Now, I obviously don't know how many of these users there will be so I don't know how many buttons there should and I need to do it dynamically.
I've tried the following code for each user.
Expand|Select|Wrap|Line Numbers
- <%
- DeleteBtn.Text="Delete " & dataREADER.Item("UserName")
- DeleteBtn.attributes.add("commandargument","runDelete")
- %>
- <asp:button id="DeleteBtn" runat="server" oncommand="rundelete"></asp:button>
Is there something easy that I can change in my code to make it work this way or will I need to redesign it? If I need to re-design it, how would I do it?