title: Async loading inside cshtml page
body: <p>It it possible to use Task (System.Threading) inside Razor??</p>
  
  <p>What i'm trying to do is this: I have a table that I want to async fill.</p>
  
  <p>Look at the code:</p>
  
  <pre><code>@{
      Func&lt;dynamic, object&gt; preenche =
          @&lt;text&gt;
              &lt;tr&gt;&lt;td&gt;oi1&lt;/td&gt;&lt;td&gt;oi2&lt;/td&gt;&lt;/tr&gt;
          &lt;/text&gt;;
  }
  
  ...
  &lt;tbody&gt;
      @Task.Factory.StartNew(() =&gt;
          {
              foreach(Apontamento ap in Model.apontamentos)
              {
                  preenche(ap);
              }
          })
  &lt;/tbody&gt;
  </code></pre>
  
  <p>The output is just this: <code>System.Threading.Tasks.Task</code></p>
  
  <p>Is it possible? Or I can just have what i'm trying to do using Ajax?</p>