Question: Create a web page using ASP.NET where the user can vote for 1 or more candidates and display their respective vote counts from a text
Create a web page using ASP.NET where the user can vote for 1 or more candidates and display their respective vote counts from a text file. You need to display the total number of votes as well as the vote for each candidates. Refer below:
Read in and store the format as below in data.txt:

Desired outputs:
Before user votes

After user votes:

data - Notepad File Edit Format View Help Candidate 1 Vote Count: 1 Candidate 2 Vote Count: 3 Candidate 3 Vote Count: 7 Total Votes: 11 Choose Your Vote Candidate 1 Candidate 2 Candidate 3 Vote Vote Vote Show Vote Count Choose Your Vote Candidate 1 Candidate 2 Candidate 3 Vote Vote Vote Show Vote Count Candidate 1 - Vote Count: 1 Candidate 2 - Vote Count: 3 Candidate 3 - Vote Count: 7 Total Votes: 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
