title: check if user is logged in in user control Asp.net MVC
body: <p>how can i check if a user is logged in in user control with asp.net mvc </p>
  
  <p>usually on a view page i use this </p>
  
  <pre><code>&lt;% if (User.Identity.IsAuthenticated) {%&gt;
    //Do something
  &lt;% } %&gt;
  </code></pre>
  
  <p>but i can't get this done on a user control </p>