Solved

ASP.NET Example of displaying user loggin with VB

Posted on 2011-09-26
3
214 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 500 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

856 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