title: How do you close a partial view opened in a pop up and refresh the main page?
body: <p>I am using a partial view that is displayed in a pop up to edit the details of a record that is clicked on in the main window.  On this view, the user can edit, delete or cancel.  When the detail record is edited or deleted successfully, I want to close the partial view and update the main window.  Right now, on delete, my main view is reloading in my pop up on success.</p>
  
  <p>Any help getting this to work is greatly appreciated.</p>
  
  <p>The HTML:</p>
  
  <pre><code>`&lt;a href="javascript:popup('@Url.Action("EditCaseEmployer/" + item.Id, "CaseOptions")')"&gt;@item.StartDate.ToShortDateString()&lt;/a&gt;`
  </code></pre>
  
  <p>Here are the custom javascript functions to popup a window:</p>
  
  <pre><code>function popup(url) {
  window.open(url, 'notes', 'width=900,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
  }
  function popup(url, windowName) {
  window.open(url, windowName, 'width=900,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
  }
  </code></pre>