Click here to Skip to main content
14,362,953 members
   

C#

 
GeneralRe: Divergences with co workers about IDisposable Pin
0x01AA20-Sep-19 6:37
professional0x01AA20-Sep-19 6:37 
AnswerRe: Divergences with co workers about IDisposable Pin
#realJSOP22-Sep-19 4:28
mve#realJSOP22-Sep-19 4:28 
QuestionHow to connect to a remote windows service Pin
Mahmoud EL-Shazly18-Sep-19 21:51
memberMahmoud EL-Shazly18-Sep-19 21:51 
AnswerRe: How to connect to a remote windows service Pin
F-ES Sitecore19-Sep-19 1:20
mveF-ES Sitecore19-Sep-19 1:20 
AnswerRe: How to connect to a remote windows service Pin
Afzaal Ahmad Zeeshan19-Sep-19 3:08
mveAfzaal Ahmad Zeeshan19-Sep-19 3:08 
GeneralRe: How to connect to a remote windows service Pin
Mahmoud EL-Shazly19-Sep-19 6:22
memberMahmoud EL-Shazly19-Sep-19 6:22 
GeneralRe: How to connect to a remote windows service Pin
Afzaal Ahmad Zeeshan19-Sep-19 7:34
mveAfzaal Ahmad Zeeshan19-Sep-19 7:34 
QuestionC# Insert TextBox Text into MS Database Pin
DreyerVorster18-Sep-19 11:20
memberDreyerVorster18-Sep-19 11:20 
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
Shared album - Dreyer Vorster - Google Photos[^]

Destination Table Capture
Shared album - Dreyer Vorster - Google Photos[^]

Booking Table Capture
Shared album - Dreyer Vorster - Google Photos[^]

WebForm Capture
Shared album - Dreyer Vorster - Google Photos[^]

WebForm with Details Capture
Shared album - Dreyer Vorster - Google Photos[^]
AnswerRe: C# Insert TextBox Text into MS Database Pin
Mycroft Holmes18-Sep-19 13:37
memberMycroft Holmes18-Sep-19 13:37 
GeneralRe: C# Insert TextBox Text into MS Database Pin
DreyerVorster18-Sep-19 20:27
memberDreyerVorster18-Sep-19 20:27 
AnswerRe: C# Insert TextBox Text into MS Database Pin
jkirkerx18-Sep-19 13:51
professionaljkirkerx18-Sep-19 13:51 
AnswerRe: C# Insert TextBox Text into MS Database Pin
Gerry Schmitz19-Sep-19 1:38
mveGerry Schmitz19-Sep-19 1:38 
QuestionHighest Number of a folder Pin
Member 1398003216-Sep-19 21:07
memberMember 1398003216-Sep-19 21:07 
AnswerRe: Highest Number of a folder Pin
OriginalGriff16-Sep-19 21:37
protectorOriginalGriff16-Sep-19 21:37 
GeneralRe: Highest Number of a folder Pin
Member 1398003216-Sep-19 22:46
memberMember 1398003216-Sep-19 22:46 
GeneralRe: Highest Number of a folder Pin
OriginalGriff16-Sep-19 22:59
protectorOriginalGriff16-Sep-19 22:59 
GeneralRe: Highest Number of a folder Pin
Member 1398003216-Sep-19 23:05
memberMember 1398003216-Sep-19 23:05 
GeneralRe: Highest Number of a folder Pin
OriginalGriff16-Sep-19 23:32
protectorOriginalGriff16-Sep-19 23:32 
GeneralRe: Highest Number of a folder Pin
Member 1398003217-Sep-19 15:01
memberMember 1398003217-Sep-19 15:01 
GeneralRe: Highest Number of a folder Pin
Peter_in_278016-Sep-19 23:17
professionalPeter_in_278016-Sep-19 23:17 
GeneralRe: Highest Number of a folder Pin
Member 1398003217-Sep-19 15:26
memberMember 1398003217-Sep-19 15:26 
AnswerRe: Highest Number of a folder Pin
BillWoodruff17-Sep-19 18:39
mveBillWoodruff17-Sep-19 18:39 
QuestionHOW TO Auto Install Devexpress Windows PowerShell Pin
Member 1404636316-Sep-19 3:17
memberMember 1404636316-Sep-19 3:17 
QuestionRe: HOW TO Auto Install Devexpress Windows PowerShell Pin
Richard MacCutchan16-Sep-19 3:44
protectorRichard MacCutchan16-Sep-19 3:44 
AnswerRe: HOW TO Auto Install Devexpress Windows PowerShell Pin
OriginalGriff16-Sep-19 4:43
protectorOriginalGriff16-Sep-19 4:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.