469,616 Members | 1,806 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,616 developers. It's quick & easy.

Not getting domain\username

I have the following code in 2 web applications in ASP.Net 2.0 and one
returns the domain\username and the other does not.
strLogin = LoginName1.Page.User.Identity.Name

Can anyone tell me why one application would fail to return it? Both have
<authentication mode="Windows"/in the web.config file. Any help would be
appreciated.

David
May 18 '07 #1
1 1074
Nevermind. I had wrong setting on web site. I had windows and anonymous.
David
"David C" <dl*****@lifetimeinc.comwrote in message
news:O6**************@TK2MSFTNGP03.phx.gbl...
>I have the following code in 2 web applications in ASP.Net 2.0 and one
returns the domain\username and the other does not.
strLogin = LoginName1.Page.User.Identity.Name

Can anyone tell me why one application would fail to return it? Both have
<authentication mode="Windows"/in the web.config file. Any help would
be appreciated.

David

May 18 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Francis Bell | last post: by
4 posts views Thread by R.Manikandan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.