title: Using Html.RenderPartial() in ascx files
body: <p>I'm trying to use Html.RenderPartial in acsx file
  and I'm getting an error:</p>
  
  <blockquote>
    <p>Compiler Error Message: CS1973: 'System.Web.Mvc.HtmlHelper'
    has no applicable method named 'RenderPartial' but appears to have an
    extension method by that name. Extension methods cannot be dynamically
    dispatched. Consider casting the dynamic arguments or calling the
    extension method without the extension method syntax</p>
  </blockquote>
  
  <pre><code>&lt;a href="/projects/&lt;%=project.Id %&gt;"&gt;
    &lt;% Html.Label("fdf"); %&gt;
    &lt;% Html.RenderPartial("ProjectName", Model.Id); %&gt;&lt;/a&gt;&lt;/li&gt;
   &lt;%} %&gt;
  </code></pre>
  
  <p>However I've import neccessary namespaces, so it won't be error at</p>
  
  <pre><code>&lt;% Html.Label("fdf"); %&gt;
  </code></pre>
  
  <p>Are there any methods to use Html.RenderPartial in ascx file?</p>