views:

99

answers:

1

Does Microsoft MVC make available a mechanism comparable to RubyOnRails internal storage container known as flash? The preference would be not using UpdatePanel tricks.

+4  A: 

Try the TempData object.

CodeMonkey1
The answer is correct, but do note that TempData is for redirects only. Use ViewData when not redirecting.
Craig Stuntz
Right, TempData lasts for one trip back and forth after that it is wiped out. It also relies on cookies. Om nom nom
Chad Moran
I use TempData always and just clear it after it is used. THat way I don't have to use a different mechanism for redirects/views.
liammclennan