How to get the LogonUserIdentity.Name

Posted by Kavi.Sirius under ASP.NET on 5/10/2012 | Points: 10 | Views : 2001 | Status : [Member] | Replies : 2
hi,

in my project i can get the logon user identity through this code


strUname = Request.LogonUserIdentity.Name;

but if i move my file into IIS, i can get the Server username instead of particular logonname

how can i get the particular user logon name when the file move IIS.
some body help me ,

Thanks in advance,.......

Regards
Kavi.n



Responses

Posted by: Mdjack on: 5/10/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Use the following statement get the logged In user name
Page.User.Identity.Name

N. MOHAMED ZACKKARIAH

Kavi.Sirius, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kavi.Sirius on: 5/11/2012 [Member] Starter | Points: 25

Up
0
Down
hi mohamed,

Thank u for ur kind reply,

ur code is perfectly working in local host,
but its not working in iis server.i didt get any user identity
tell any other idea ,


Regards
Kavi.n

Kavi.Sirius, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response