title: Renderpartial conditionally on masterpage in asp.net mvc
body: <p>Hi I have the following menus defined on my masterpage in a asp.net mvc web application</p>
  
  <pre><code>&lt;%Html.RenderPartial("AdminMenu"); %&gt;
  &lt;%Html.RenderPartial("ApproverMenu"); %&gt;
  &lt;%Html.RenderPartial("EditorMenu"); %&gt;
  </code></pre>
  
  <p>However I want to only display the right menu depending on the logged in users role. How do I achieve this?</p>
  
  <p>I am starting to think that my strategy is incorrect so is there a better method for achieving the same thing?</p>