Solved

ASP.NET Example of displaying user loggin with VB

Posted on 2011-09-26
3
212 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now