15 pts.
 Log In then Output the Data of the Logged Person C# SQL 2005
I have a program that requires a user to input his/her IDNumber. If it doesnt exist the program will prompt to go to the NewRecord section. When the user input his IDNumber and he will be logged on to the real program. After doing the program and pressing the DONE Button. A messagebox will appear that says "Your are now logging off. [FirstName] [LastName]" Here is the example of the table.
 IDNumber        FirstName          LastName 
 1001                   Jane                Smith 
 How can i put the Jane Smith in the messagebox when i log in the idnumber which is 1001 ? thanks


Software/Hardware used:
c#
ASKED: June 24, 2010  2:36 PM
UPDATED: August 3, 2010  5:02 AM

Answer Wiki:
You would have to query your table to get the corresponding name. In general you will need a database connection object, a command object and a reader object. If this is not the answer you were looking for, or you need a more detailed answer, please provide more details about your requirement/problem and let us know what exactly you need help with.
Last Wiki Answer Submitted:  June 24, 2010  5:18 pm  by  carlosdl   0 pts.
All Answer Wiki Contributors:  carlosdl   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I am done with the SQL with the LogIn sir. My problem is how to connect to the other form. And give that output

 15 pts.

 

how about using properties… in which u can store the values and u can use it through out your program

 90 pts.

 

or redirect to the next page only once message box “OK” is clicked and this message box is shown in same page where u having this data..

 90 pts.