Display the details of user after successful login
I have created a system for computer repair shop in C#.i created form for the user to login and when they successfully login, the data of the user (full name,address,etc )who had logged in will be displayed to another form . The problem here is when the user successfully logged in how can i display the data to another form? please give me code.

Munesh SharmaRank #174 · 13.9K reputationPosted Oct 14, 2014, 10:36 PM EDT
http://www.codeproject.com/Questions/550801/howpluswouldplusiplusshowplusmyplususerplusnameplu
Gopi ChandRank #262 · 9.6K reputationPosted Oct 14, 2014, 11:55 PM EDT
Chathurika Palliyaguruge31 reputationPosted Oct 20, 2014, 7:34 PM EDT
Wim SturkenboomRank #2,527 · 554 reputationPosted Oct 20, 2014, 8:10 PM EDT
In both cases, run a query like
select * from yourusertable where name='username' and password='userpassword'
Check if you get rows back; if 0 rows, failed login, if 1 row successful login, if more rows you have a problem
For webbased, store the userid in a session variable, redirect to next page, query database based on userid in session variable and display data.
For desktop, store the userid in a global variable, open next form, query database based on userid in global variable and display data.
Other question is if this is windows based, linux based or ....