title: Partial View : Value cannot be null or empty. Parameter name: contentPath
body: <p>I am implementing Partial View </p>
  
  <p>Main View(Index) :</p>
  
  <pre><code>@model IEnumerable&lt;MvcApplication2.Models.Employee&gt;
  @foreach (var item in Model)
  {
   @Html.Partial("_Employee"  ,item)
  }
  </code></pre>
  
  <p>Partial View(_Employeee.cshtml)</p>
  
  <pre><code>@model MvcApplication2.Models.Employee
  &lt;table style="font-family: Arial; border: 1px solid black; width: 300px"&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;img src="@Url.Content(Model.Photo)" alt="Model.Alternate.Text"/&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;table&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;b&gt;Gender:&lt;/b&gt;
                      &lt;/td&gt;
                      &lt;td&gt;@Model.Gender
                      &lt;/td&gt;
                      &lt;td&gt;
                          &lt;b&gt;Salary:&lt;/b&gt;
                      &lt;/td&gt;
                      &lt;td&gt;@Model.Salary
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>On Runtime ..it give following Error ..</p>
  
  <blockquote>
    <p>Partial View : Value cannot be null or empty. Parameter name:
    contentPath</p>
  </blockquote>
  
  <p>I have read 
  <a href="https://stackoverflow.com/questions/2753326/problem-using-partial-view-in-for-each-loop">Similar post</a> ..they suggested to implement </p>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;MVCLD.Models.Employee&gt;" %&gt;
  </code></pre>
  
  <p>But how to implement in Razor View ...i dont know ..please Suggest</p>