Flash equivalent in ASP.NET MVC 3

后端 未结 8 1497
情深已故
情深已故 2020-12-07 15:38

There is a feature called \'flash\' in ruby on rails where you can put a message in \'flash\', redirect, and the message is available in the next action.

Example of

相关标签:
8条回答
  • 2020-12-07 16:40

    No, the TempData solution is what you are looking for.

    0 讨论(0)
  • 2020-12-07 16:42

    This is a much requested feature which was in MvcContrib 2.0 - I am not sure if it made it to 3.0. I personally keep it in the session for a short period when I am doing PRG = Post-Redirect-Get.

    0 讨论(0)
提交回复
热议问题