title: get TempData Value in another Action
body: <p>I get the value from FormCollection and add in the <strong>List</strong>.Then the List will assigned to TempData.Now my question is ,How to get the TempData value in  <strong>Redirect</strong>  action and add send firstname and last name in Viewbag to view?How can I do this?     </p>
  
  <pre><code> public ActionResult show(FormCollection form)
          {
              string firstnamevalue = form["firstname"];
              string lastnamevalue = form["lastname"];
  
              List&lt;string&gt; list = new List&lt;string&gt;();
              list.Add(firstnamevalue);
              list.Add(lastnamevalue);
  
  
              TempData["Values"] = list;
  
              return RedirectToAction("Redirect");
          }
  
          public ActionResult Redirect()
          {
              //I need to get firstname and lastname here and add to view bag.
  
              return View();
          }
  </code></pre>