title: what is the use of insert mode on AJAXFORM in MVC?
body: <p>When i am clicking the ajax from is loaded the partila view correctly inside the div have id as mytraget. But my question is what is the use of insertmode in ajax form. </p>
  
  <p>On submitting the ajax form it always load the partial view inside of the div have id as mytraget on all type of insert mode. Then what is the of insert mode?</p>
  
  <p>My original view named as MyView</p>
  
  <pre><code>@model Example.Models.mytest
  
  &lt;div id="mytraget"&gt; &lt;/div&gt;
  
  @using(Ajax.BeginForm("myParialAjax", new AjaxOptions() { InsertionMode = InsertionMode.InsertBefore, UpdateTargetId = "mytraget" }))
  {
      &lt;p&gt;Name&lt;/p&gt; @Html.TextBoxFor(m =&gt; m.string1)
  
      &lt;input type="submit"  value="Submit" /&gt;
  }
  </code></pre>
  
  <p>My Cobtroller Method</p>
  
  <pre><code>[HttpPost]
  public PartialViewResult myParialAjax(mytest s)
  {
      return PartialView("Mypartial", s);
  }
  </code></pre>
  
  <p>My Parial view which is named as <strong>Mypartial</strong></p>
  
  <pre><code>@model Example.Models.mytest
  
  &lt;p&gt; 
      @Html.TextBoxFor(m =&gt;m.string1)
  &lt;/p&gt;
  </code></pre>
  
  <p>In all  type of insert mode i  get partial view inside of the the below div.
  <strong>Output :</strong>  </p>
  
  <pre><code>&lt;div id="mytraget"&gt;
      &lt;p&gt;
          &lt;input id="string1" type="text" value="asdf" name="string1"&gt;
      &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>