title: RedirectToAction MVC 3 after $.ajax call
body: <p>From my view I am sending via $.ajax a JSON object to my controller to save it in the database. 
  If all succeeded i want to redirect to another action which will show a diferent view.</p>
  
  <p>If i use this code: </p>
  
  <pre><code>return RedirectToAction("CreatePage", "Survey", new {id = question.PageId});
  </code></pre>
  
  <p>The execution goes to the Survey controller which returns a view but it is not shown.</p>
  
  <p>I have read some post which said that it is not posible to redirect via ajax. </p>
  
  <p>The solution I use so far is to redirect via javascript like this:</p>
  
  <pre><code>success: function (ret) {
              window.location.href = "/Survey/CreatePage/" + $("#PageId").val();
           }
  </code></pre>
  
  <p>Although this always works, sometimes i need to refresh the CreatePage view to show the last changes made.</p>
  
  <p>Any idea of how to solve this problem better?</p>
  
  <p>Thanks in advance</p>