Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, I have created a windows application in c#.net where i have one login form, one registration form, one homepage form and one sql server database with one table. Ok Now any user can register and then login to access homepage. There he type something in texbox control and then he exit application. Now if he login again and goes to homepage, he should again see his text on textbox that he typed on previous login. Please help me how to do it and give me example code if possible.
Posted
Comments
V. 22-May-13 5:41am    
It doesn't work that way. What have you done so far? What is the exact problem, where are you stuck?
Basmeh Awad 22-May-13 5:43am    
the text which user is typing in textbox after registering are you saving it in you sql table???
Pankaj Mahor 23-May-13 6:20am    
No, i dont know how to save text to database.

1 solution

You can store the typed text in the database so you can get it anytime you like. Create a new table with two columns (Text, User).
 
Share this answer
 
Comments
Pankaj Mahor 22-May-13 7:21am    
But how to store text in database?
Nnorss 22-May-13 14:42pm    
Google for insert in database.
Pankaj Mahor 23-May-13 6:23am    
ok, Suppose i store text to database. Now how to identify which user logged in?
Nnorss 23-May-13 11:39am    
Google for select from database.
Pankaj Mahor 3-Jun-13 6:40am    
On google, i found i have to use user profiles like in asp.net but dont know how to do it in windows form application. I can only use Settings.setting but i want to save it to sql server database. Please help...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900