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...
<% =Environment.UserName%>
OR
<%=User.Identity.Name%>
Both will give difefrent results...
Comments
Post a Comment