title: Get Current Logged Username in my app
body: <p>I would like to get the current logged in username and display it my frontend. 
  Currently I have a function called GetCurrentUser()  that gets called when a button is clicked.</p>
  
  <pre><code>&lt;button type="submit" onclick="GetCurrentUser()" style="margin-left: 15px;margin-top:10px; margin-bottom: 5px;background-color: black; "value="Submit"&gt;Save Selections&lt;/button&gt;&lt;br&gt;
  
  function GetCurrentUser() {
  var usrName ="@HttpContext.Current.User.Identity.Name.ToString()";
  //var usrName = '&lt;%HttpContext.Current.User.Identity.Name %&gt;';
  //document.getElementById("UserName").innerHTML = usrName;
  console.log(usrName);}
  </code></pre>
  
  <p>I get the follwoingoutput in my console log--> @HttpContext.Current.User.Identity.Name</p>