title: ASP.NET MVC 3 - After ajax call, redirect to new page or generate page refresh
body: <h2>Scenario:</h2>
  
  <p>I have written an MVC wizard that automatically uses ajax if javascript is enabled in the browser.  Each step of the wizard is a PartialView (I'm using ASP.NET MVC 3).</p>
  
  <p>All works fine.  </p>
  
  <p>The problem is refreshing the page if, for example, the user's status changes as a result of how she fills in the wizard.  EG, if the wizard logs the user in, or registers them.  As the wizard 'moves' from step to step by getting Partial Views via AJAX, the page doesn't get refreshed to reflect the change in the user's status (eg, an anonymous user is now registered).</p>
  
  <h2>What I want to do:</h2>
  
  <p>Essentially, when I need a full page refresh, I need to AUTOMATICALLY run the following on the client AFTER delivering the Partial View corresponding to the current step of the wizard via AJAX:</p>
  
  <pre><code>location.reload();
  </code></pre>
  
  <h2>The Problem:</h2>
  
  <p>As the DOM has been modified via AJAX, I don't know how to make my javascript (location.reload();) run WITHOUT user intervention (eg, clicking a button).</p>
  
  <p>Any suggestions?  I have been off work for a while and am struggling to get back up to speed.</p>