Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public ActionResult Sample1()
  2. {
  3.  
  4. TempData["Test"] = "Test1"
  5. return RedirectToAction("Sample2");
  6. }
  7.  
  8. public ActionResult Sample2()
  9. {
  10. var test= TempData["Test"] as string
  11.  
  12. return View( test);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement