title: Need help on Func<dynamic,HelperResult>
body: <p>I have the following statement. I want it to generate the html show below  when I call the commitButton(null)</p>
  
  <pre><code>Func&lt;dynamic, HelperResult&gt; commitButton =
  (
    @&lt;span class="float-right"&gt;
      @using ( Html.BeginForm( "CommitChanges" , "Commit" ) )
      {
        &lt;button type="button" class="commit-button"&gt;
          &lt;span&gt;&lt;/span&gt;
          @ResourceString.CommitChanges
        &lt;/button&gt;
      }
    &lt;/span&gt;
  ) ;
  </code></pre>
  
  <p>when I call commitButton(null) 
  Expected result should be like</p>
  
  <pre><code>&lt;span class="float-right"&gt;
   &lt;form action="Commit/CommitChanges" method="POST"&gt;&lt;button type="button"   class="commit-button"&gt;&lt;span&gt;&lt;/span&gt; Commit Changes &lt;/button&gt;&lt;/form&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>But actual result is</p>
  
  <pre><code>  &lt;span class="float-right"&gt;
       &lt;button type="button"   class="commit-button"&gt;&lt;span&gt;&lt;/span&gt; Commit Changes &lt;/button&gt;
      &lt;/span&gt;
  </code></pre>