Subscribe to Subscribers

Online Members

Spha
More...

Forums » .NET » Windows »

how to display userlogin name on the page?


Posted Date: 12 Jan 2007      Posted By:: vineet bindal     Member Level: Silver    Member Rank: 0     Points: 2   Responses: 4



hi all

pls tell me how can i display user name and login time in a window form

pls help

regards
vineet bindal




Responses

#105064    Author: Ashis kumar Nayak      Member Level: Gold      Member Rank: 0     Date: 12/Jan/2007   Rating: 2 out of 52 out of 5     Points: 2

Read the user name from the user name field or from database box and retrieve last logged in time from the Database for the logged in user.

U can retrieve the last logged in time from database using Top clause


Revert back if any doubt.

regards

Ashis


 
#105078    Author: Sujit Kumar      Member Level: Gold      Member Rank: 225     Date: 12/Jan/2007   Rating: 2 out of 52 out of 5     Points: 2

u can do it through global variable.
when user login in the application then store username and logintime in that global variable and show it where u want.

Regards,
Sujit Kumar
DotNet Blogs


 
#105103    Author: vineet bindal      Member Level: Silver      Member Rank: 0     Date: 12/Jan/2007   Rating: 2 out of 52 out of 5     Points: 2

dear sir,
i am really thankfull to you for the replay but,,,can u send some example..i am not clear how can i retriev the user login time from the database?becouse that is what i want to store in database whn a user will login,,pls help:(





 
#105158    Author: rajitha      Member Level: Silver      Member Rank: 0     Date: 13/Jan/2007   Rating: 2 out of 52 out of 5     Points: 2

when u r login with username thattime u have to store username and logintime(date.now) in any global variable as i
then u have to take label or any control
if u r dispaly the second page u have to create object for that form
for ex
obj.lable1.text=i
same as logintime


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : how to redirect user in windows form?
Previous : USB CONTROLLER ERROR.
Return to Discussion Forum
Post New Message
Category:

Related Messages

Awards & Gifts
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2013 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.