473,463 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

using logon_user

hi, i'm new to asp.net and here's what i'm trying to do:

i used Response.Write(Request.ServerVariables("LOGON_USER ")) to get the username of user who logged on to the domain, there's no error but i only get a blank page. Is there any solution to this? thanx
Nov 18 '05 #1
3 1244
Try

HttpContext.Current.User.Identity.Name

Bill Green
"Helmi" <mu********@msn.com> wrote in message
news:8F**********************************@microsof t.com...
hi, i'm new to asp.net and here's what i'm trying to do:

i used Response.Write(Request.ServerVariables("LOGON_USER ")) to get the

username of user who logged on to the domain, there's no error but i only
get a blank page. Is there any solution to this? thanx
Nov 18 '05 #2
this will only tell you the user if you have IIS configured to NOT use
Anonymous Authentication, in other words they need to log into the SITE

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Helmi" <mu********@msn.com> wrote in message
news:8F**********************************@microsof t.com...
hi, i'm new to asp.net and here's what i'm trying to do:

i used Response.Write(Request.ServerVariables("LOGON_USER ")) to get the

username of user who logged on to the domain, there's no error but i only
get a blank page. Is there any solution to this? thanx
Nov 18 '05 #3
Thanx! That works great.
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Chase | last post by:
I am trying to retrieve the LOGON_USER and it comes up blank. Below is my code: struser = Request.ServerVariables("LOGON_USER") Can anyone help? I need to validate internal people on out...
2
by: Markus Mannheim | last post by:
Hi, I have a non anonymous site in IIS5 The site is for collecting any kind of data from employees. Authentication is done with the server variable "Logon_User" Pages: start.asp -...
1
by: Amitava Bardhan | last post by:
Request.servervariables("Logon_USer") is working perfectly well for one asp page returning the NT userid as expected but returning an empty string for another asp page.Both the asp pages are in the...
1
by: dmjames | last post by:
For one of our machines, Request.ServerVariables("LOGON_USER") is returning the wrong value. Person A is logged into the machine (I watched him log in), but when he retrieves an aspx page...
1
by: Ryan | last post by:
I am trying to figure out why I am trying to use the result of Request.ServerVariables("LOGON_USER") in a query in my aspx application. I want to use the server variable. When I check the...
5
by: mvr | last post by:
Hi all How to get the Windows current logged user name using Classic ASP. If no direct way are there any work arounds. Thanks mvr
4
by: Kam | last post by:
within the intranet, all user are required to login. How can I get the User ID and Domain in ASP page?
2
by: lmlaster | last post by:
I have 2 webs under my default web running win2003 1. A front-page intranet 2. A asp (not .net) web is fine Both allow anonomous access. My front page web always gets a BLANK...
7
by: Smurfas | last post by:
Hi, everything simple: string strWhatever = Request.ServerVariables("LOGON_USER"); TextBox1.Text = strWhatever; Found, my Computer name. But how found another computer name, when I have IP....
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
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
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...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.