I started coding for a system to add information of candidates applying for a job to a database and get the total count of the no of candidates applied for each choice since each candidate has been given three choices.
I wrote code for all that but the no of candidates aren't known and I need to create a loop to get the total count. I have used a button to submit the information to the database and it is successful but I have to close the application and come back to enter new data. I NEED TO FIX THIS. I want to add to the database continuously like for example after I enter data the data must be recorded in the database, then when I click the clear button and enter data again and submit I want that to store in the database also and increase the relevant count by 1.
Also, the data will be submitted at different times so the count of the choices must not go back to 0 once the application is closed.
I'm new to C# so I'm lost. PLEASE HELP ME SOLVE THIS PROBLEM.