title: how to create form dynamically with in form
body: <p>I have created an extension using formbuilder. Now I have used it in my view.
  My view looks like:</p>
  
  <pre><code>@using (Html.BeginForm("addDataInd", "CustInformations", FormMethod.Post))
  {
    &lt;fieldset class="field"&gt;
      &lt;legend&gt;Addresses&lt;/legend&gt;
        &lt;table&gt;
          &lt;tr&gt;                            
            @Html.EditorFor(model =&gt; model.addresses) 
          &lt;/tr&gt;
        &lt;/table&gt;           
    &lt;/fieldset&gt; 
  }
  </code></pre>
  
  <p>where </p>
  
  <pre><code>@Html.EditorFor(model=&gt;model.addresses)
  </code></pre>
  
  <p>calls my EditorTemplate which looks like:</p>
  
  <pre><code>&lt;td&gt;
  @Html.hSearch("txtSearch", "", "lblsrch", "Search Text: ", "Search", "Fetch", "LookUp", new { script = "Select Aid, FullAreaName from fGetAreaTB()" }, null)
  &lt;/td&gt;
  </code></pre>
  
  <p>When i run the program the page looks like </p>
  
  <p><img src="https://i.stack.imgur.com/PXlee.png" alt="enter image description here"></p>
  
  <p>i used fire bug to know the error. All I found was that, the code generated for the first
  upper image (i.e. for permanent address) it doesn't create a form, but for other two it creates a form. So when I click the first search button, it doesn't work but when i click the second and third button it works well.</p>
  
  <p>I just want when i run the program all the button must be in form.</p>