471,337 Members | 1,167 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Getting user login (Newbie help)

Hello all. I'm learning ASP.NET C# and I have a question about how to go
about getting the user's domain login. I need to get the login and use it to
query a database to get other information about the user.

I can use: <asp:LoginName ID="LoginName1" runat="server" />

But that just displays the login. Can I use Request.ServerVariables? It
doesn't display when using LOGON_USER.


Aug 12 '08 #1
1 989
Try: http://www.google.com/search?q=asp.net+impersonation

The first hit looks promising; personally I prefer the "trusted
subsystem" model, which allows for much better pooling of connections etc.

Aug 12 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Tapi | last post: by
8 posts views Thread by DB2-newbie | last post: by
1 post views Thread by xcelmind | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.