title: Open Partial View on button click inside a modal asp.net mvc?
body: <pre><code>    function SimpleAjaxCall() {
          $.ajax({
              url: "/Account/Register",
              success: function (result) {
                  $("#modalsignupbody").html(result);
                  $('#signup').modal({
                      backdrop: 'static',
                      keyboard: true
                  }, 'show');
              }
          });
      }
  </code></pre>
  
  <p>BUTTON CALL:</p>
  
  <pre><code>&lt;button id="SignUpbtn" class="btn btn-warning" onclick="SimpleAjaxCall();"&gt;Sign Up&lt;/button&gt;
  </code></pre>
  
  <p>MODAL:</p>
  
  <pre><code>  &lt;div class="modal fade" id="signin" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
                  &lt;h4 class="modal-title" id="myModalLabel"&gt;Sign in&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
  
  
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
                  &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Its not working i am able to go inside the controller function but i am not getting any result in the below code:</p>
  
  <pre><code> success: function (result) {
  </code></pre>
  
  <p>My Controller:</p>
  
  <pre><code>   [HttpGet]
      [AllowAnonymous]
      public ActionResult Register()
      {
          return PartialView("_Register");
      }
  </code></pre>