TempData for page redirection?

Can tempdata be sent to a redirected page? if so, how? if not, any alternative?

+4
source share
2 answers

You can use TempData to save data from one query to another when using Redirect() and RedirectToAction()

This MSDN article explains all this.

If you want your page to display this data, you just need to pass it to your view from your action.

+8
source

TempData will be saved for two transitions, while ViewData will be saved for only one. This is the easiest way to explain this.

0
source

All Articles