I am writing a program that asks the user how many fields(tests, assignments, and practicals).
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.
e.g if the user selects 3 tests, only txtTest1, 2 and 3 will become visible.
What I actually want to do is have a dynamic page which creates the table according to the user selection.
The problem I am facing is creating this table with input fields I can pull from in the code of the webpage.
Could anyone help, please?
I would like to know if this is possible and how before i code further.
This is what I have so far:
The webpage before user input:
After user selection and button click:
In the code, I would like to have something like this:
Test test1 = new Test();
test1.Weighting = txtTest1W.Text;
test1.Date = txtTest1D.Text;
MAH.AddTest(test1);
Any help would be appreciated, thank you.