Solved

ASP.NET Example of displaying user loggin with VB

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

Accepted Solution

by:
paulmacd 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 33

Expert Comment

by:paulmacd
ID: 36600779
Very happy to help.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

23 Experts available now in Live!

Get 1:1 Help Now