title: getting domain user name without windows prompt using c#
body: <p>I have an asp.net c# site that I have setup in IIS 7.</p>
  
  <p>In IIS I have enabled basic and windows authentication so I can get the domain users username, so if there is a way to get this without prompting that'd be a perfect solution for me. </p>
  
  <p>I am using the follwing statement to get username:</p>
  
  <pre><code>String username = System.Web.HttpContext.Current.User.Identity.Name;
  lblUserName.Text = "Welcome" + username;
  </code></pre>
  
  <p>I want to avoid windows prompting for login credentials.</p>
  
  <p>Can you please give me suggestions how can i do this?</p>