Hi,
You can build the html content from server side,
Initially define the div section in asp.net page like this with runat=server mode should be set
<div id="dynamicContent" runat="server">
//Our dynamic text box content is going to come here, which we gonna build it from server side.
</div>
Server side code to create dynamic controls with same with adjacent to another one
public void clickMe_click(object sender, EventArgs e)
{
int count=1; //used to name the textbox id
StringBuilder dynTxtBoxs = new StringBuilder();
if (!IsPostBack)
{
dynTxtBoxs.Append(@"<table id='dynTbl' runat='server'> <tr> <td>");
dynTxtBoxs.Append(@"<input type='Text' runat='server' id='dynTxtBx_'" + count + "/>");
count++;
dynTxtBoxs.Append(@"<input type='Text' runat='server' id='dynTxtBx_'" + count + "/>");
dynTxtBoxs.Append(@"</td></tr></table>");
dynamicContent.InnerHtml = Convert.ToString(dynTxtBoxs);
}
}
Now you can see the text box will be dynamically loaded on your page.
You need to work on appending extra controls on another click of a button.
Hope this helps you a bit.
Regards,
RK