title: Adding PartialView in layout
body: <p>I have created _LoginPartial and used it in default _Layout, it's working properly but when I created another _AdminLayout, there I got the issue. </p>
  
  <p>I have already added top on the page </p>
  
  <pre><code>@using System.Web.Mvc
  @using System.Web.Mvc.Html
  </code></pre>
  
  <p>I am not able to add my _LoginPartial  in _AdminLayout and getting the following error </p>
  
  <blockquote>
    <p>"System.Web.WebPages.Html.HtmlHelper' does not contain a definition
    for 'Partial' and the best extension method overload
    'System.Web.Mvc.Html.PartialExtensions.Partial(System.Web.Mvc.HtmlHelper,
    string)' has some invalid arguments "</p>
  </blockquote>
  
  <p>My code is</p>
  
  <pre><code> @using System.Web.Mvc
   @using System.Web.Mvc.Html
   &lt;!DOCTYPE html&gt;
   &lt;html lang="en"&gt;
    &lt;head&gt;
     @*&lt;title&gt;@ViewBag.Title&lt;/title&gt;
     &lt;link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" /&gt;
    &lt;script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")"
   type="text/javascript"&gt;&lt;/script&gt;*@
  &lt;style type="text/css"&gt;
      /*Initialize*/ul#menu, ul#menu ul.sub-menu
      {
          padding: 0;
          margin: 0;
      }
      ul#menu li, ul#menu ul.sub-menu li
      {
          list-style-type: none;
          display: inline-block;
      }
      /*Link
       Appearance*/ul#menu li a, ul#menu li ul.sub-menu li a
      {
          text-decoration: none;
          color: #fff;
          background: #666;
          padding: 5px;
          display: inline-block;
      }
      /*Make the
       parent of sub-menu relative*/ul#menu li
      {
          position: relative;
      }
      /*sub menu*/ul#menu li ul.sub-menu
      {
          display: none;
          position: absolute;
          top: 30px;
          left: 0;
          width: 100px;
      }
      ul#menu li:hover ul.sub-menu
      {
          display: block;
      }
      &lt;/style&gt;
     &lt;/head&gt;
   &lt;body&gt;
    &lt;div&gt;
  
      &lt;table border="1" width="100%" style="background-color: Lime; margin-top: 30px"&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  @Html.Partial("_LoginPartial")
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;ul id="menu"&gt;
  
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Manage Product&lt;/a&gt;
                          &lt;ul class="sub-menu"&gt;
  
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Manage Order&lt;/a&gt;
                          &lt;ul class="sub-menu"&gt;
  
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Manege user&lt;/a&gt;
                          &lt;ul class="sub-menu"&gt;
  
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Set NewProduct&lt;/a&gt;
                          &lt;ul class="sub-menu"&gt;
  
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Set Home Category&lt;/a&gt;
                          &lt;ul class="sub-menu"&gt;
  
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Category Wise product&lt;/a&gt;
                          &lt;ul class="sub-menu"&gt;
  
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Feature product&lt;/a&gt;
                          &lt;ul class="sub-menu"&gt;
  
                          &lt;/ul&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  @RenderBody()
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
      &lt;/div&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>