title: Get logged-in user in html page with C# code and without opening in VS?
body: <p>We have a pure html page running in our IIS, and we would like to know what logged-in users are accessing the page. By "logged-in" users I mean a user that looged on to our intranet in their Windows machine.</p>
  
  <p>It seems that I can't retrieve this information with javascript or html, so I was considering using <code>.net</code> for this, something like the following:</p>
  
  <pre><code>System.Security.Principal.WindowsIdentity.GetCurrent().Name
  </code></pre>
  
  <p>Is it possible to add server-side code to this HTML page without having to go to <code>Visual Studio</code> to create a solution or project?</p>
  
  <p>I just don't want to have to "convert" this <code>.HTML</code> into an <code>.ASPX</code> just for one line of code. These html pages have tons of javascript charts, and I know something will break if I open it in VS.</p>