LOGON_USER

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I'm in the process of converting a ASP application to C#. In my app I use
LOGON_USER to get the name of the person accessing the application. I
display the full name of the person not their network logon ID

How can i do this with C#?
 
Mike,

There are two things that you have to do. The first is to set the
impersonate attribute for the <identity> tag in web.config to true. This
allows the User property on the page to be populated with the principal that
made the request.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top