Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ASP.NET Example of displaying user loggin with VB

Posted on 2011-09-26
3
Medium Priority
?
221 Views
Last Modified: 2012-05-12
Hi Experts

Although there seems to be a wealth of information about retreving the user active dictory user name on a web page I can only find ones that use C#

All I want to do is dispaly the user name login on a web page.  If I use the syntax Environment.UserName it displays the web server login I want to dispaly the client side loggin.

Does any have some code examples or can point me in the right direction.
0
Comment
Question by:MrDavidThorn
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 2000 total points
ID: 36600592
LogonUserIdentity is the namespace you want.  Here's a code sample showing its usage.  Let us know if you want something else:

http://msdn.microsoft.com/en-us/library/system.web.httprequest.logonuseridentity.aspx#Y0
0
 

Author Comment

by:MrDavidThorn
ID: 36600767
Thanks dude
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36600779
Very happy to help.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question