At present, many websites on the Internet have online survey functions. In order to make online voting websites more sophisticated, usually when displaying voting results, they will be in the form of percentages. If the survey results of the website are in the form of a pie chart, Displaying the voting results in the form of a table will make the website more intuitive. In addition, this example also limits the number of votes per user (i.e. each user can only vote once for a topic in the system).
The specific functions implemented in this example are as follows:
Add voting items;
Manage voting projects;
vote on projects;
View voting results.
Things to note:
(1) Each user can only vote once for one topic in the system.
Business process (1) Click the "Add voting item" button to add a voting item topic, and click the "OK" button after adding the topic.
Add voting options interface (2) Add input voting options in the text box under "Please enter voting options below", click the "Insert" button, if there are unnecessary options, select the option and click "Remove" ” button to delete the voting item.
(3) Click the "All Votes" button to vote online and view voting results.
(4) Click the "Vote Item Management" button to delete unnecessary voting items.
Attach the database file in the DB folder using SQL Server 2005 or higher and then modify the database connection string.