title: I got Exception System.StackOverflowException when i try to render Tree view in ASP.NET C#
body: <p>i have a tree view. for render child view i call a partial control every time for child controls of a parents.</p>
  
  <p>can someone tell me how i can do it then System.StackOverflowException not caused</p>
  
  <pre><code>  &lt;ul class="children"&gt;
          @foreach (var v in vat)
          { 
              &lt;li&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" value="@v.ID" /&gt;@v.Name
                  &lt;/label&gt;
              &lt;/li&gt;
              if (cat.Child.Count &gt; 0)
              { 
              @Html.Partial("xxxx/views/partials/Childcats.cshtml", cat.Child)
              }
          }
      &lt;/ul&gt;
  </code></pre>