?
Solved

SharePoint Silverlight Web Part - How do I obtain Windows Identity

Posted on 2011-03-07
2
Medium Priority
?
463 Views
Last Modified: 2012-05-11
I am developing a SharePoint Web Part using Silverlight which will be written in C#.  Web Part will be used in an Intranet environment.  I need to obtain the user's Windows Identity.  Is there a way that I can obtain it?
Thanks in advance for your help,
Terry
0
Comment
Question by:wahlster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
dp_expert earned 2000 total points
ID: 35067132
0
 

Author Comment

by:wahlster
ID: 35068046
Thanks dp_expert,
Following the link thiis is what ended up working:

string userName = System.Security.Principal.WindowsIdentity.GetCurrent(ifImpersonating : false).Name;

Thanks again,
Terry
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

770 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