How to get user name of user onlin

ASH

Active member
Joined
Nov 20, 2005
Messages
30
Location
Riyadh
Programming Experience
Beginner
hello,

in asp.net 2.0 how I can get user name of user online and make login now ! ?

regardsssss :rolleyes:
 
Possible solution

where are you pulling the user's login information from?
If the login information (user name) is the domain name (LAN Login) then
you can get the username on form load with something
like

VB.NET:
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] daUser [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]String[/COLOR][/SIZE]
[SIZE=2]daUser = UCase(System.Environment.UserName)[/SIZE]

That is one way I know of.
From there it would most likely have to verify the user name to what is in a database of user names and possibly in this table you have a checkbox that could be checked upon log in. Then basically, the user would be redirected to the page they need to be at.
 
Back
Top