Hi
What I can do: I aim to create a view where a User Control consisting of a TextBox and a Table is added to a page as needed. The user will type a SQL query in the textbox and the Table will be used to render the results.
What I need to do: I need to add multiple of these controls to the page as the user requests them. They'll be numbered in steps.
For example:
Step 1 = sql query to get a list of parameters;
Step 2 = sql query which uses the first parameter to return a certain value;
Step 3 = sql query that returns a cumulative sum of values which will be compared to the value in step 2.
Each time the "Add" button is clicked a new user control appears beneath the previous in which I can create my SQL query and produce my answer.
I can do the comparisons and query the database. No issues, I'm just not sure how to re-use controls in MVC.
Any suggestions would be helpful, Thanks, George