I have the following table
<td class="style2">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>Location</asp:ListItem>
<asp:ListItem>Name</asp:ListItem>
<asp:ListItem>SSN</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem>LIKE</asp:ListItem>
<asp:ListItem>=</asp:ListItem>
</asp:DropDownList>
<br />
<br />
</td>
<td valign="bottom">
<asp:Button ID="btnAdd" runat="server" Text="Add" />
</td>
When btnAdd is clicked i want to add another row of those filters. i assume i would create a panel and have these 3 controls and the add button would create a new panel or do i create all controls on the fly and then add them with code behind.
Edit:: When I click on btnAdd then I want to add another row as such
Before btnAdd Click
<td class="style2">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>Location</asp:ListItem>
<asp:ListItem>Name</asp:ListItem>
<asp:ListItem>SSN</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem>LIKE</asp:ListItem>
<asp:ListItem>=</asp:ListItem>
</asp:DropDownList>
<br />
<br />
</td>
After btnAdd:
<td class="style2">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>Location</asp:ListItem>
<asp:ListItem>Name</asp:ListItem>
<asp:ListItem>SSN</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem>LIKE</asp:ListItem>
<asp:ListItem>=</asp:ListItem>
</asp:DropDownList>
<br />
<br />
</td>
<tr>
<td class="style2">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>Location</asp:ListItem>
<asp:ListItem>Name</asp:ListItem>
<asp:ListItem>SSN</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem>LIKE</asp:ListItem>
<asp:ListItem>=</asp:ListItem>
</asp:DropDownList>
<br />
<br />
</td>
</tr>