title: Different menu in master.page depending on login type
body: <p>I have 2 types of users (phonebookers and salesrep). They are supposed to have 2 different menu bars, pending on their login.</p>
  
  <p>From the login.aspx - I set a number of <code>Session[]</code>s among them an <code>["EmployeeType"]</code>.
  In my master page I have a <code>ContentPlaceholder ID="Menu"</code>.</p>
  
  <p>Master.page seems locked in place, long before I can change anything pending some Session value. I found the load sequence which seems to confirm my suspession as Masterpage is loaded and locked way before any contentpage get in play.</p>
  
  <p>I tried <code>&lt;% If (Session["EmployeeType"].ToString() == "1") { %&gt; type 1 employee &lt;% } else {%&gt;Type 2 employee&lt;% } %&gt;</code> - without luck.</p>
  
  <p>I tried doing it in <code>Page_PreRender(EventArgs e)</code> - no luck.<br>
  I tried having the hyperlink controls in the masterpage, without a text and then setting the text later i PreRender and visible = true/false - no luck.</p>
  
  <p>Google says there is an option with javascript but I haven't found any examples or I haven't recognised any javascript as something I could use.</p>
  
  <p>Google found a fair few people having the opposite problem of mine, their masterpage loads way too many times and they want to stop it doing that.</p>