title: Hide navigation bar in master page depend on my user role
body: <p>Hi i having a question when using web form, and i have a master page that contain my navigation, and i would like to ask is it possible after i login, my navigation bar can be customize base on different role (admin, student, staff)..</p>
  
  <pre><code>        &lt;asp:ContentPlaceHolder runat="server" ID="FeaturedContent" &gt;
          &lt;nav&gt;
              &lt;ul id="menu" style="text-align:center;"&gt;
                  &lt;li&gt;&lt;a href="~/"&gt;Moderator&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="~/About.aspx"&gt;Supervisor&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="~/Contact.aspx"&gt;Student&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/nav&gt;
      &lt;/asp:ContentPlaceHolder&gt;
  </code></pre>
  
  <p>so that is sample of contentplaceholder in my sitemaster, my idea is to hide moderator and supervisor when i log in with student, and i wish to use check the roles "student" then the sitemaster navigation bar of moderator and supervisor can hide from users, please do advice me there there are better solutions as this is only i know.. thanks..</p>