ASP.NET Tips & Tricks
How to get the user name in a web app
Four steps to achieve it:
- Use the following code to get the user name in your application:
string user = User.Identity.Name.ToString();
- Modify your web.config file to include the identity and the …


