how to add a row to a table with asp.net controls dynamically using javascript
<p>Now, if i click a button Add Row, I want the entire row tr1 to get added to the table as it is...</p>

<pre><code> &lt;table &gt;
   &lt;tr id="tr1" runat="server"&gt;
       &lt;td&gt;
           &lt;asp:TextBox ID="TextBox1" runat="server" Text="Name"&gt;&lt;/asp:TextBox&gt;
       &lt;/td&gt;
        &lt;td&gt;
              &lt;asp:TextBox ID="TextBox2" runat="server" Text="email"&gt;&lt;/asp:TextBox&gt;
       &lt;/td&gt;
        &lt;td&gt;
             &lt;asp:Button ID="Button1" runat="server" Text="Submit" /&gt;
       &lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
       &lt;td&gt;
            &lt;asp:Button ID="Button2" runat="server" Text="Add row" /&gt;
       &lt;/td&gt;
   &lt;/tr&gt;
</code></pre>

<p></p>

<p>to make it more clear pls visit <a href="http://www.makemytrip.com" rel="nofollow">http://www.makemytrip.com</a> and click on Travel Multicity?
In that popup panel, click Add another leg and see what happens....</p>

<p>I need exactly that function in my application...please guide me how to achieve this..
Thanks</p>
