阅读背景:

ASP.NET MVC:在执行控制器方法后清除TempData

来源:互联网 

From what I've read, information placed into TempData will be there for the current request and the next request (so that you can pass information across redirects). The problem is that if I browse to a controller action that does not redirect, the information in TempData will still be there for the next request. I'm using TempData to store informational messages that are displayed to the user, so now I'm getting the messages for the first screen on the second screen also.From what I've read, information placed into Te




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: