title: name 'html' nor name 'model' exist in current context in usercontrol MVC and C#
body: <p>I am using Microsoft MVC and C#. I have a usercontrol (example.ascx) created and at the top I'm inheriting <code>System.Web.MVC.ViewUserControl&lt;PostTransferViewModel&gt;</code></p>
  
  <p>Now, while my model name is appended to ViewUserControl, I get "The name 'Model' does not exist in the current context" and "The name 'Html' does not exist in the current context. If I removed the <code>&lt;PostTransferViewModel&gt;</code> from the end of ViewUserControl then everything works fine, but I need <code>&lt;PostTransferViewModel&gt;</code>.</p>
  
  <pre><code>    &lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;PostTransferViewModel&gt;" %&gt;
  
  &lt;div class="postTransferTank"&gt;
      &lt;h2&gt;
          Approved Post Transfers&lt;/h2&gt;
      &lt;% if (Model.ApprovedPostTransfers.Count() == 0)
         { %&gt;
      &lt;span class="emptyList"&gt;There are currently no approved Post Transfers for this tank.&lt;/span&gt;&lt;br /&gt;
      &lt;% } %&gt;
      &lt;% else
          { %&gt;
      &lt;%=Html.DisplayFor(x =&gt; x.ApprovedPostTransfers,"PostTransferList") %&gt;
      &lt;% } %&gt;
      &lt;br /&gt;
      &lt;%=Html.ActionLink&lt;PostTransferController&gt;(x =&gt; x.NewPostTransfer(), "Enter Post Transfer", new { @class = "create-link" })%&gt;
      &lt;br /&gt;
      &lt;% if (Model.DraftPostTransfers.Count() != 0)
         { %&gt;
      &lt;h2&gt;
          Draft Post Transfers&lt;/h2&gt;
      &lt;%=Html.DisplayFor(x =&gt; x.DraftPostTransfers, "PostTransferList") %&gt;
      &lt;% } %&gt;
  &lt;/div&gt;
  </code></pre>