title: Edit Bootstrap Modal Popup not Loading Partial View
body: <p>I have a details view of a Model <code>TModel</code> that displays the details of a record as Read only and has a button that should load the edit view (modal). So I have the modal container in <code>_layout.cshtml</code> and my partial view created in the shared folder but when the button from the details view is clicked it only shows the modal without the form from the partialview.</p>
  
  <p><strong>Modal in Layout</strong></p>
  
  <pre><code>&lt;div class="modal fade" id="EditCompanyModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" data-backdrop="true"&gt;
      &lt;div class="modal-dialog modal-lg" role="document"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-body p-0"&gt;
                  &lt;div class="p-5 BigShadow"&gt;
                      &lt;h5 class="font-weight-bold"&gt;
                          Edit Company Account
                          &lt;span class="pull-right"&gt;&lt;i class="fa fa-user-circle-o text-tomato"&gt;&lt;/i&gt;&lt;/span&gt;
                      &lt;/h5&gt;
                      &lt;span class="small"&gt;Please ensure that information provided is valid&lt;/span&gt;
                      &lt;hr style="border-top: 1px dashed #EEE" /&gt;
  
                      @*@await Html.PartialAsync("CompanyModalPartial")*@
                      &lt;div class="modal-content"&gt;
  
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Javascript in Layout</strong></p>
  
  <pre><code>$('#EditCompanyModal').on('hidden.bs.modal', function (e) {
      $('#EditCompanyModal modal-content').load('@Url.Action("ModalDetails", "Company")')
  });
  </code></pre>
  
  <p><strong>Action in Company Controller</strong></p>
  
  <pre><code>public IActionResult ModalDetails()
  {
      return PartialView("CompanyModalPartial");
  }
  </code></pre>
  
  <p><strong>Partial View</strong></p>
  
  <pre><code>@model TModel
  &lt;form asp-action="Save"&gt;
      //form
  &lt;/form&gt;
  </code></pre>
  
  <p>Note that the partial view has the same model as the Details View.
  So with the above appraoch, when I click the edit button, the modal displays but there's no form. How can I get this to work?</p>