title: ASP.NET MVC 2 technique to hide a part of a view based on user permissions
body: <p>What's the best technique to hide part of a view depending of the credentials of the user?</p>
  
  <p>To explain my self little better and as example i have the following code in my view:</p>
  
  <pre><code>&lt;%= this.Model.Name %&gt; &lt;%=Html.ActionLink("Edit",....)%&gt;
  </code></pre>
  
  <p>And i would like to hide the edit button for those that aren't administrators for instance...</p>
  
  <p>Could you give me a hand?</p>
  
  <p>Thanks a lot in advance.</p>
  
  <p>Best Regards.</p>