title: ASP.NET MVC - razor. Create a panel using @helper
body: <p>I'm trying to create the following Helper using the @helper utility present in ASP.NET MVC.
  The idea is to create a Panel and call to this helper from a page for set the title and the body of the panel (I want to have more than one panel on the same page for this reason I can't use layout).</p>
  
  <p>Here is the helper:</p>
  
  <pre><code>@helper PanelHelper(string title, string body){
      &lt;fieldset class="fieldset-border-2"&gt;
          &lt;legend style="display: none;"&gt;Edit&lt;/legend&gt;
          &lt;div style="display: table;"&gt;
              &lt;div style="display: table-row;"&gt;
                  &lt;div class="panel-first-row" style="display: table-cell;"&gt;
                      &lt;div style="border-bottom: 1px solid #cecece; padding-left: 5px; height: 25px;"&gt;
                          &lt;div style="display: table; margin: 9px 0 9px 0;"&gt;
                              &lt;div style="display: table-row;"&gt;
                                  &lt;div class="title" style="display: table-cell;"&gt;
                                      @title
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="edit-row-separator" style="display: table-row;"&gt;
              &lt;/div&gt;
              &lt;div style="display: table-row;"&gt;
                  &lt;div style="display: table-cell;"&gt;
                      @body
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/fieldset&gt;
  }
  </code></pre>
  
  <p>And here how I would like to call to this helper:</p>
  
  <pre><code>@Helpers.PanelHelper("Customers")
  {
      &lt;div style="display: table; width: 100%;"&gt;
          &lt;div style="display: table-row; width: 100%;"&gt;
             ................ HTML =&gt; Customer Fields ......................
          &lt;/div&gt;
      &lt;/div&gt;
  }
  </code></pre>