title: Modal pop up in ASP.NET MVC 4 is not working
body: <p>I have created a partial controller called post which is working fine. Now I want to call it from Home index via modal pop up. Here is my code
  Hierarchy (if that matters)</p>
  
  <pre><code>View
    Account 
    Home
        - Index
    Post
        - Index
  </code></pre>
  
  <p>Home/Index view</p>
  
  <pre><code>    &lt;script src="~/Scripts/jquery-1.7.1.js"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")" type="text/javascript"&gt;&lt;/script&gt;
  
  
  &lt;script type="text/javascript"&gt;
      $(function () {
          $('.popupLink').click(function () {
              $('&lt;div id="popupfooterdiv"/&gt;').appendTo('body').dialog({
                  close: function (event, ui) {
                      dialog.remove();
                  },
                  modal: false,
                  draggable: false,
                  width: 500,
                  height: 400,
                  resizable: false,
              }).load(this.href, {});
              return false;
          });
      });
  &lt;/script&gt;
  
  @Html.ActionLink("Open Pop Up", "Home", "actionName",  new {@class="popupLink"})
  </code></pre>
  
  <p>Home controller</p>
  
  <pre><code>       [HttpPost]
      public ActionResult actionName()
      {
          return PartialView("Post");
      }
  </code></pre>
  
  <p>When I am clicking it, it is redirecting to me to an error page with below error</p>
  
  <pre><code>  Server Error in '/' Application.
  
  The resource cannot be found.
  
  Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 
  
  Requested URL: /Home/Home
  </code></pre>
  
  <p>and also my URL changes to</p>
  
  <pre><code>http://localhost:2654/Home/Home?Length=10
  </code></pre>
  
  <p>Where I am wrong?
  and also,
  how can I close this pop up when user save the data from Post index view.</p>