title: Create a table of input fields and date fields from user selection
body: <p>I am writing a program that asks the user how many fields(tests, assignments, and practicals).</p>
  
  <p>I so far have a hardcoded table with 5(maximum) fields for tests, assignments, and practicals which will become visible once I have the user selection.</p>
  
  <p>e.g if the user selects 3 tests, only txtTest1, 2 and 3 will become visible.</p>
  
  <p>What I actually want to do is have a dynamic page which creates the table according to the user selection.</p>
  
  <p>The problem I am facing is creating this table with input fields I can pull from in the code of the webpage. </p>
  
  <p>Could anyone help, please?</p>
  
  <p>I would like to know if this is possible and how before i code further.</p>
  
  <p>This is what I have so far:</p>
  
  <p>The webpage before user input:</p>
  
  <p><a href="https://i.stack.imgur.com/0zpN6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0zpN6.png" alt="beforeUserInput"></a></p>
  
  <p>After user selection and button click:</p>
  
  <p><a href="https://i.stack.imgur.com/bqKC2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bqKC2.png" alt="After user selection"></a></p>
  
  <p>In the code, I would like to have something like this:</p>
  
  <pre><code>Test test1 = new Test();
  test1.Weighting = txtTest1W.Text;
  test1.Date = txtTest1D.Text;
  
  MAH.AddTest(test1);
  </code></pre>
  
  <p>Any help would be appreciated, thank you.</p>