473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

JavaScript: Find Currently Logged in User Name

Hi all,

I need to find the user name of the client which is supplied to the operating system (Windows OS) in my web application.

Any one can say the way to find it? either by java script or .net? how to take it?

i did the environment.name property by .net. but it returns the server machine's user name only. but i need the client machine's user name.

Please help me.

Thanks in Advance,

Regards,
Dhanasekaran
Feb 11 '08 #1
3 2076
DrBunchman
979 Expert 512MB
In asp.NET I use:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim sLogOn As String = Request.ServerVariables("LOGON_USER")
  3.  
Does this help?

Dr B
Feb 11 '08 #2
Thanks for your reply.

But unfortunately i get null value by this statement.

Again i explain you what i need is,

I want to the Windows User Name which is supplied by the client machine. By that user name i will open my web application for that user.

Please help me.

Regards,
Dhanasekaran. G
Feb 12 '08 #3
Hai ....................




pageload:--


{



HttpBrowser Capabilities bc=Request.Browser;

lbl1.Text=" Ip Address :"+Request.UserHostAddress;

lbl2.Text= "Browser Name :" + bc.Browser;



}


Note:- take The Two Lables On Design Window
Feb 14 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gowhera Hussain | last post by:
Use This for Learning Only .... Do Not Try To Act Smart HACKING WITH JAVASCRIPT Dr_aMado Sun, 11 Apr 2004 16:40:13 UTC This tutorial is an overview of how javascript can be used to bypass...
3
by: dhanashivam | last post by:
Hi all, I need to find the user name of the client which is supplied to the operating system (Windows OS) in my web application. Any one can say the way to find it? either by java script or...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.