How to get username in ASP.Net

You can get logged in username in asp.net using
<% =Environment.UserName%>
OR
<%=User.Identity.Name%>
Both will give difefrent results...

Comments

Popular posts from this blog

Asp.Net Save File on client machine

Get Unused Stored Procedures from Sql Server 2008

Cross Apply Incorrect syntax near '.'