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

Weekend Gateway Trip - Shrivardhan

Cross Apply Incorrect syntax near '.'

Apply CSS Class based on Browser