Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
If any one know this please tell me. I am getting username but I don't know how to get password
Posted
Updated 24-Jan-16 19:38pm
v3
Comments
dan!sh 25-Jan-16 2:08am    
You can't get the password.
Sinisa Hajnal 25-Jan-16 2:32am    
It should be impossible and with good reason. If you can get it, so can somebody else from your system.
If you describe what you need to accomplish, maybe you get an alternative option here.

1 solution

For UserName:
C#
string username = Request.LogonUserIdentity.Name;

For password: It will be great security hole to fetch password. Try to avoid it.

For more info:
How to get user details in asp.net Windows Authentication - Stack Overflow[^]
 
Share this answer
 
v2
Comments
Member 11922956 25-Jan-16 2:33am    
Thanks for your replay, but I need that password also.
[no name] 25-Jan-16 3:40am    
As per my knowledge, you can't fetch password.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900