Figure 1. Required form.
The form is designed as shown in Figure 1, contains: four Labels, two RadioButtons, one ComboBox, one ListBox and one Button.
Only one of two sex "Male" or "Female" can be selected.
(0.5 point) In the ComboBox, list four static items like figure below.
UK
UK
USA
Canada
ThaiLan
(1.5 point) List all books in database into the Listbox. The first item is selected by default. The Listbox must be allow multi select.
When user click on "Add New Author" button, you need to check author's name cannot be empty (0.5 point) (show MessageBox to warn if this condition is not satisfied), add new record about author into table Authors (1 point), and also add new records into table Book_Author to represent information about which books were written by this author (1 point).
(0.5 point) After inserting new information successfully, show the MessageBox to notify.
Question 2. (5 points)
You are asked to write a web application that show information about books in database.
Note:0 will be given to the work that not using database connection string in the file appsettings.json
+ 100%
Close