title: ASP.NET: Using MVC partial view in web forms
body: <p>I've got a regular ASP.NET web form page and am pasting in a <code>&lt;%= Html.Partial(...) %&gt;</code> that I took from an MVC view page. </p>
  
  <p>What do I need to do to this web forms .aspx to get the Html.Partial to work? I've put this at the top of my web forms .aspx page:</p>
  
  <pre><code>&lt;%@ Import Namespace="System.Web.Mvc" %&gt;
  &lt;%@ Import Namespace="System.Web.Mvc.Html" %&gt;
  </code></pre>
  
  <p>But I'm still getting error:</p>
  
  <pre><code>Compiler Error Message: CS0103: The name 'Html' does not exist in the current context
  </code></pre>