I am badly stuck on this problem and would appreciate any kinds of helps! I have to create a page where the user can add more rows by clicking a button. For example, I have the first row with 2 text boxes (name and birth dates), second row with the "Add Row" button. When the user clicks the "Add Row" button, the first row should be cloned and repeated...but the user can't add more than 5 rows. Later all the information need to be saved in a SQL table. How this can be achieved in C#?  

I am attaching my sample ASP.NET. Can any one PLEASE help me? 

PS: I have already read and tried "How to: Add Rows and Cells Dynamically to a Table Web Server Control"....but that's not working for me.

&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
&lt;head runat="server"&gt;
    &lt;title&gt;Testing Adding Rows&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;    
        &lt;asp:Table ID="Table1" runat="server" width="400" style="border:[none][0]; border-color:White; border-style:hidden"&gt;                
            &lt;asp:TableRow ID="TableRow1" runat="server"&gt;
                &lt;asp:TableCell runat="server" nowrap="nowrap" Width= "70"&gt;
                    &lt;asp:Label ID="nameLabel" runat="server" Text="Your Name" Font-Size="X-Small"&gt;&lt;/asp:Label&gt;
                &lt;/asp:TableCell&gt;
                &lt;asp:TableCell runat="server" nowrap="nowrap" Width= "100"&gt;
                    &lt;asp:TextBox ID="tb_name" runat="server" Font-Size="Smaller"&gt;&lt;/asp:TextBox&gt; 
                    &lt;asp:RequiredFieldValidator ID="nameValidator" runat="server" ControlToValidate="tb_name" Font-Size="Smaller"&gt;*&lt;/asp:RequiredFieldValidator&gt;
                &lt;/asp:TableCell&gt; 

                &lt;asp:TableCell runat="server" nowrap="nowrap" Width= "70"&gt;
                    &lt;asp:Label ID="dateLabel" runat="server" Text="Birthdate" Font-Size="Smaller" &gt;&lt;/asp:Label&gt;
                &lt;/asp:TableCell&gt;                        
                &lt;asp:TableCell runat="server" Width= "100"&gt;
                    &lt;asp:TextBox ID="tb_date" runat="server" Font-Size="Smaller"&gt;&lt;/asp:TextBox&gt;
                    &lt;asp:RequiredFieldValidator ID="dateValidator" runat="server" ControlToValidate="tb_date" Font-Size="Smaller"&gt;*&lt;/asp:RequiredFieldValidator&gt;
                &lt;/asp:TableCell&gt;

            &lt;/asp:TableRow&gt;


            &lt;asp:TableRow ID="TableRow2" runat="server"&gt; 
                &lt;asp:TableCell runat="server" align="left" Width= "100"&gt;
                    &lt;asp:Button ID="addRow" runat="server" Height="22px" Text="Add Row" 
                                 ToolTip="Click to add another row" onclick="ButtonAddRow_Click" /&gt;
                &lt;/asp:TableCell&gt; 
            &lt;/asp:TableRow&gt; 


            &lt;asp:TableRow ID="TableRow3" runat="server"&gt;  
                &lt;asp:TableCell runat="server" bordercolor="#FFFFFF"&gt;    &lt;/asp:TableCell&gt;

                &lt;asp:TableCell runat="server"  align="left" nowrap="nowrap" bordercolor="#FFFFFF"&gt;
                    &lt;asp:Label ID="msg" runat="server" ForeColor="Red" Font-Size="Smaller"&gt;&lt;/asp:Label&gt;
                    &lt;asp:ValidationSummary ID="LogonValidationSummary" HeaderText="All the fields (*) are required." DisplayMode="SingleParagraph"
                                           Font-Italic="true" ShowSummary="True" EnableClientScript="true" runat="server" Font-Size="Smaller"/&gt; 
                &lt;/asp:TableCell&gt;
            &lt;/asp:TableRow&gt;

             &lt;asp:TableRow ID="TableRow4" runat="server"&gt; 
                &lt;asp:TableCell ID="TableCell10" runat="server" bordercolor="#FFFFFF"&gt;       &lt;/asp:TableCell&gt;

                &lt;asp:TableCell ID="TableCell11" runat="server" align="left" bordercolor="#FFFFFF"&gt;
                    &lt;asp:Button ID="ButtonSubmit" runat="server" Height="22px" Text="Submit" Width="79px" onclick="ButtonSubmit_Click" /&gt;
                &lt;/asp:TableCell&gt;
            &lt;/asp:TableRow&gt;

        &lt;/asp:Table&gt;    
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;



Question: What does 'liberal to' mean here?
Answer: from http://dictionary.reference.com/browse/liberal


  Synonyms
  
  
  progressive. 7. broad-minded, unprejudiced. 9. beneficent, charitable, openhanded, munificent, unstinting, lavish. See generous. 10. See ample.
  


http://dictionary.reference.com/browse/generous


  1.
  liberal in giving or sharing; unselfish: 


http://dictionary.reference.com/browse/charitable


  1.
  generous in donations or gifts ...
  2.
  kindly or lenient in judging people, acts, etc.


I'm going to have to go with definition 4 (with implications of 3 as well):


  3 (Especially of an interpretation of a law) broadly construed or understood; not strictly literal: they could have given the 1968 Act a more liberal interpretation
  
  4 Given, used, or occurring in generous amounts: liberal amounts of wine had been consumed


The judge is saying, "Just because, with these rules, I'm giving the plaintiffs almost everything they're asking for by broadly construing rules in their favor, that doesn't mean I think it's a good idea. I don't get to make the law, I have to apply the law that's given to me via precedent."

Now exactly what the word "comports" means, as a plural noun, is another question. I can't find a relevant definition. It seems to have a specific legal meaning of like "demands".