D
Dreyer Vorster
Guest
Hi I have a MS Database called Holidays with 2 tables called: Destination and Booking.
I have a web form consisting of:
GridView Displaying the data from Destination Table
Label (Text = Holiday ID) with a TextBox (name = txtHolidayID)
Label (Text = Your Name) with a TextBox (name = txtName)
Label (Text = "") and (Name = lblMessage)
Button (Text = Book) and (Name = btnBook)
When the User clicks the Book Button the Web form should check whether the txtHolidyID (In this case 1 - 4) is one of the Holiday IDs in the GridView(Destination Table), If not the lblMessage should display saying "Invalid ID" and not save the Data.
When the User clicks the Book Button and the txtHolidayID is correct (Meaning 1 - 4 in this case), and the txtName is of string, then the holidayID in the TextBox which is from the Destination Table should be saved in the Booking Table along with the Name provided and the lblMessage should display "Booking Successful".
When the User clicks the Book Button and everything is correct but did not save for some reason the lblMessage should display "Booking Failed".
I have searched the forum for something similar but I'm not finding it.
I will add Captures of my Database and Web Form to make things easier to understand.
Sorry for this rookie question.
Database Capture
<a href="https://photos.app.goo.gl/YWtok6PUBf598sJw7">Shared album - Dreyer Vorster - Google Photos</a>[<a href="https://photos.app.goo.gl/YWtok6PUBf598sJw7" target="_blank" title="New Window">^</a>]
Destination Table Capture
<a href="https://photos.app.goo.gl/yBLR2Fe4gP8G7TCt7">Shared album - Dreyer Vorster - Google Photos</a>[<a href="https://photos.app.goo.gl/yBLR2Fe4gP8G7TCt7" target="_blank" title="New Window">^</a>]
Booking Table Capture
<a href="https://photos.app.goo.gl/H1qKuETnbaDLrB8s8">Shared album - Dreyer Vorster - Google Photos</a>[<a href="https://photos.app.goo.gl/H1qKuETnbaDLrB8s8" target="_blank" title="New Window">^</a>]
WebForm Capture
<a href="https://photos.app.goo.gl/cyNjYfo1u2qvpeJF8">Shared album - Dreyer Vorster - Google Photos</a>[<a href="https://photos.app.goo.gl/cyNjYfo1u2qvpeJF8" target="_blank" title="New Window">^</a>]
WebForm with Details Capture
<a href="https://photos.app.goo.gl/KJ5TCZ4Bp3sHaJAPA">Shared album - Dreyer Vorster - Google Photos</a>[<a href="https://photos.app.goo.gl/KJ5TCZ4Bp3sHaJAPA" target="_blank" title="New Window">^</a>]
Continue reading...
I have a web form consisting of:
GridView Displaying the data from Destination Table
Label (Text = Holiday ID) with a TextBox (name = txtHolidayID)
Label (Text = Your Name) with a TextBox (name = txtName)
Label (Text = "") and (Name = lblMessage)
Button (Text = Book) and (Name = btnBook)
When the User clicks the Book Button the Web form should check whether the txtHolidyID (In this case 1 - 4) is one of the Holiday IDs in the GridView(Destination Table), If not the lblMessage should display saying "Invalid ID" and not save the Data.
When the User clicks the Book Button and the txtHolidayID is correct (Meaning 1 - 4 in this case), and the txtName is of string, then the holidayID in the TextBox which is from the Destination Table should be saved in the Booking Table along with the Name provided and the lblMessage should display "Booking Successful".
When the User clicks the Book Button and everything is correct but did not save for some reason the lblMessage should display "Booking Failed".
I have searched the forum for something similar but I'm not finding it.
I will add Captures of my Database and Web Form to make things easier to understand.
Sorry for this rookie question.
Database Capture
<a href="https://photos.app.goo.gl/YWtok6PUBf598sJw7">Shared album - Dreyer Vorster - Google Photos</a>[<a href="https://photos.app.goo.gl/YWtok6PUBf598sJw7" target="_blank" title="New Window">^</a>]
Destination Table Capture
<a href="https://photos.app.goo.gl/yBLR2Fe4gP8G7TCt7">Shared album - Dreyer Vorster - Google Photos</a>[<a href="https://photos.app.goo.gl/yBLR2Fe4gP8G7TCt7" target="_blank" title="New Window">^</a>]
Booking Table Capture
<a href="https://photos.app.goo.gl/H1qKuETnbaDLrB8s8">Shared album - Dreyer Vorster - Google Photos</a>[<a href="https://photos.app.goo.gl/H1qKuETnbaDLrB8s8" target="_blank" title="New Window">^</a>]
WebForm Capture
<a href="https://photos.app.goo.gl/cyNjYfo1u2qvpeJF8">Shared album - Dreyer Vorster - Google Photos</a>[<a href="https://photos.app.goo.gl/cyNjYfo1u2qvpeJF8" target="_blank" title="New Window">^</a>]
WebForm with Details Capture
<a href="https://photos.app.goo.gl/KJ5TCZ4Bp3sHaJAPA">Shared album - Dreyer Vorster - Google Photos</a>[<a href="https://photos.app.goo.gl/KJ5TCZ4Bp3sHaJAPA" target="_blank" title="New Window">^</a>]
Continue reading...