I work with ASP.net MVC 2 Framework, for several sites. We have a base site, and then subsidiary sites that inherit from the "main" site, which contains 90% of the functionality that the subsidiary sites will use.
In one of the controllers, I save some data, add a user interface message to tempData, and then use Response.Redirect.
Redirection works, but after redirection tempdata is empty.
I tried to return " RedirectToAction" and " RedirectToRoute" with the same routing location, and although it fills in TempData, the redirect does not occur, lol ..
So, I think in short, is there a way to make tempdata work when using the standard Response.Redirect?
source
share