title: layout difficulty in MVC3
body: <p>I am having a login page.  In the login Page I don`t have any menu and based upon the user login a menu appear on the Home page.</p>
  
  <p>My problem is how <strong>not to display the menu</strong>  only in my login page? </p>
  
  <p>I am having a  page  MenuControlPartial.cshtml as follows for the menu:</p>
  
  <pre><code> &lt;li&gt;&lt;a href="#"&gt;Admin&lt;/a&gt;
                    &lt;ul&gt;
                  &lt;li&gt;TimeKeeper&lt;/li&gt;
                  &lt;li&gt;AAA&lt;/li&gt;
                  &lt;li&gt;BBB&lt;/li&gt;
                  &lt;li&gt;CCC&lt;/li&gt;
                  &lt;/ul&gt;
                  &lt;/li&gt;
  
  
                  &lt;li&gt;&lt;a href="#"&gt;Settings&lt;/a&gt;
                  &lt;ul&gt;
                  &lt;li&gt;VV&lt;/li&gt;   
                  &lt;li&gt;XX&lt;/li&gt;                    
                  &lt;/ul&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
  </code></pre>
  
  <hr>
  
  <p>My _layout.cshtml is as as follows:</p>
  
  <pre><code> &lt;div id="page"&gt;
              &lt;div id="header"&gt;
                  &lt;div id="title"&gt;
                                  &lt;br /&gt;
                  &lt;/div&gt;
                  @if (Request.IsAuthenticated)
                  {    
                      &lt;div id="loginInfo"&gt;
                      @Html.Partial("_LogOnPartial")
                      &lt;/div&gt;
  
                      &lt;div class="clear"&gt;
                      &lt;/div&gt;
                         &lt;div id="menucontainer"&gt;
                          @Html.Partial("MenuControlPartial")
                          &lt;/div&gt;
                      &lt;div class="clear"&gt;&lt;/div&gt;
                  }
                  &lt;/div&gt;
              &lt;div id="content"&gt;  
              @RenderBody() 
              &lt;/div&gt;
      &lt;/div&gt;
                  }
      &lt;/body&gt;
  </code></pre>