Click here to Skip to main content
15,886,736 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to display message in user (last time login) in display in login time
Posted
Comments
Tejas Vaishnav 24-Jan-14 4:27am    
can you give more details, about what you want?
Member 10207197 24-Jan-14 4:32am    
last time user login display message
like ubantu in login that display message you last time login in 23/1/2014 12:20pm

IN the Database,
Create a table with the columns UserID(int or Guid {depends on your db design}) and LastLogOn( datetime)

whenever the user logs to the Application (Insert for first time)Update the UserID with the CurrentTime.
similary you can read the datetime value from the table for the particular user and display it on the screen.

Hope it works.
 
Share this answer
 
You will need to save the login time whenever a user logs in. I would do that in the table where I save user details (say by adding a column LastLoginTime). Get this value when you are authenticating the user and if the authentication is successful. Now that you have the value, show it using a label control. As simple as that!
 
Share this answer
 

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