title: Display Alert Message: On OK button click RedirectToAction
body: <p>I am trying to display a successful/unsuccesful message after attempting a stored procedure. My Save ActionResult is called on Save button click - however before I redirect back to the index I want to display a message box. Is there a way to return a view first, and then RedirectToAction?</p>
  
  <p>Save button points to: </p>
  
  <pre><code> [HttpPost]
      public ActionResult Save(string submit, Models.KnownIssues knownIssue)
      {           
  
          UpdateKnownIssue(knownIssue);
          InsertKnownIssue(knownIssue);
  
  
          return RedirectToAction("Index");
  
      }
  </code></pre>
  
  <p>The viewbag alerts: </p>
  
  <pre><code>    public ActionResult Edit(KnownIssues knownIssue, string submit)
      {
          if (UpdateKnownIssue(knownIssue))
          {
              ViewBag.ShowAlert = "&lt;script&gt;alert('Successfully Edited');  window.location.href = '/KnownIssues';&lt;/script&gt;";
          } else
          {
              ViewBag.ShowAlert = "&lt;script&gt;alert('Unseccessful. Try again.');&lt;/script&gt;";
          }
          return View(knownIssue);
      }
  </code></pre>