title: How to make JQuery return View?
body: <p>Before, I had my form directly call the Action, but now, I want to use JQuery to do stuff before having the Action called. The problem I have is that before, when I called return View() from the controller, it would reload the partial page with the message I put into the Viewbag.Message. How do I do that with JQuery?</p>
  
  <pre><code>$("#button").click(function () {
      DoStuff();
  });
  function DoStuff()
  {
      $.ajax("Home/DoStuff"), function() {
  
      };
  }
  </code></pre>
  
  <p>$</p>
  
  <pre><code>[HttpPost]
  public ActionResult DoStuff()
  {
      string value = Request.Form["value"];
  
      Viewbag.Message = TempData["message"];
  
      CustomView view = new CustomView();
      return View(view);
  }
  </code></pre>