ASP.NET MVC TempData Is Really RedirectData(blogs.teamb.com)
submitted by
CraigStuntz(438) 3 years, 4 months ago
Many people seem to be confused about the TempData feature in ASP.NET MVC. TempData behaves like the ViewData dictionary, except that it persists until the next request from the same browser. Because of this, TempData should only be used when you know exactly what the next request is going to be.
Realistically, this means that you should only use TempData immediately before you redirect !
|category: MVC
|Views: 49
tags:
MVC another
Everyones tags:
Your Tags: