title: Hide iFrames Using the Controller
body: <p>I have tried finding the answer to this and come across several things which have not yielded the desired result.</p>
  
  <p>So I wrote a HTML Helper that loads in an (fancybox) iFrame:<br>
  <code>&lt;%= Html.ActionFrame("Projects", "Edit") %&gt;</code></p>
  
  <p>The resulting page has a save button which currently saves the data and redirects to the Index page within the iFrame. As the action goes:  </p>
  
  <pre><code>        if (ModelState.IsValid)
          {
              projectRepository.saveProject(record);
              return RedirectToAction("Index");
          }
  </code></pre>
  
  <p>But what I want to be able to do is that upon clicking the save the iFrame would close as well as saving the data.</p>
  
  <p>I came across <a href="https://stackoverflow.com/questions/853738/how-do-you-close-an-asp-net-mvc-page-from-the-controller">this</a>, which is something similar that I would like to be able to do for the iFrames, it would make converting the current actions simpler.</p>
  
  <p>Thanks in advance!</p>