473,411 Members | 2,196 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,411 software developers and data experts.

Getting LogOn Name from Client

I've created this ASP page with VB as the code behind. As part of the
security there will only be a few people who should have access to the
page. I was planning on a log-in screen, and then validate the log-in
name and password against what is stored in a database.

My boss thinks that I should be able to get the user name that the
person logs onto their computer with. I know how to do that in VB 6,
but not in .Net and most especially not through an internet
application. Can that be done? And if so, could someone either tell
me how, or point me in the direction of a tutorial?

Thanks!
Jennifer
Nov 21 '05 #1
2 1126
Hi,

Take a look at the different forms authenication on a web form and
the forms identity class.

http://msdn.microsoft.com/library/de...classtopic.asp

http://msdn.microsoft.com/library/de...classtopic.asp

http://msdn.microsoft.com/library/de...classtopic.asp

http://msdn.microsoft.com/library/de...classtopic.asp

Ken
-------------------
"Jennifer" <je**********@hotmail.com> wrote in message
news:33*************************@posting.google.co m...
I've created this ASP page with VB as the code behind. As part of the
security there will only be a few people who should have access to the
page. I was planning on a log-in screen, and then validate the log-in
name and password against what is stored in a database.

My boss thinks that I should be able to get the user name that the
person logs onto their computer with. I know how to do that in VB 6,
but not in .Net and most especially not through an internet
application. Can that be done? And if so, could someone either tell
me how, or point me in the direction of a tutorial?

Thanks!
Jennifer
Nov 21 '05 #2

August 8, 2004

I don't follow URL, so I don't know whether Ken answered
your question. You just have to set in your Web.config file, the
<authenication> element's "mode" setting to "Windows". Then
you can use from your code: User.Identity.Name to retrieve the
name of the user on the client's computer. The clients username
on his/her computer can change, especially if it is a home
computer. I hope this answers your question!
Joseph MCP
"Jennifer" wrote:
I've created this ASP page with VB as the code behind. As part of the
security there will only be a few people who should have access to the
page. I was planning on a log-in screen, and then validate the log-in
name and password against what is stored in a database.

My boss thinks that I should be able to get the user name that the
person logs onto their computer with. I know how to do that in VB 6,
but not in .Net and most especially not through an internet
application. Can that be done? And if so, could someone either tell
me how, or point me in the direction of a tutorial?

Thanks!
Jennifer

Nov 21 '05 #3

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

Similar topics

5
by: Alex Wolff | last post by:
Hi, I need to know if its possible to create an ASP page that when requested will display the network id of the requester. Most people have told me to query the...
2
by: Mark Miller | last post by:
I'm not sure why this is happening. I'm trying to run a late-bound report. My original code looked like this: TableLogOnInfo logOnInfo = new TableLogOnInfo ();...
3
by: 2803stan | last post by:
I'm ashamed to ask this question because I did it before, but have not done it in a few years. For a brand new database, client server, V8.2, Win32, I need to connect all clients to the server....
8
by: Jonathan Dixon | last post by:
I am developing an intranet and was wondering, when a user logs on is there a way to get the username of the windows account in asp.net. I have tried the following but they return the worker...
6
by: Mr Flibble | last post by:
I have a class that has a LogOn method. I'm trying to think what the advantages are two approaches I have. a) Having a bool returned containing the success of the LogOn. b) Raising an...
0
by: robpimentel | last post by:
Hi, I've been using DB2 for about 1 week, so please bear with me. DB2 Connect Enterprise Edition v8.1 FixPack 5 Windows Server 2003 Standard Edition SP1 Here is an error that continues to...
1
by: Srinivas Chintakindi | last post by:
Hi All, I am developing one ASP.NET 2.0 application in which user test the remote sql server existance. User enters remote sql server name, data base name, authentication mode, user name,...
5
by: Mike P | last post by:
I am trying to get at different users inboxes programmatically (see code below). It works fine, except for the fact that the logon line seems to always logon to my local account rather than...
3
by: Lee T. Hawkins | last post by:
I am having a number of problems over the last two full days trying to get an ASP.NET 2.0 application to connect to a SQL Server 2005 database... First off, I built this application w/ Visual...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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,...

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.