tempdata
SaveTempData called even though session is disabled
I\'ve disabled sessionState in my mvc2 app via the web.config and also created my own controllerfactory and dummy tempdata provider, as described here:[详细]
2023-02-21 04:08 分类:问答Access Controller Context/ TempData from business objects
I am trying to build a session/tempdata provider that can be swapped. The default provider will work on top of asp.net mvc and it needed to access the .net mvc TempData from the business object class.[详细]
2023-02-15 04:17 分类:问答Getting custom type from TempData asp.net mvc 2
I have a custom class MyCustomType. In that class I have a property MyCustomProperty of type bool and another property MyCustomProperty1 of type bool also.[详细]
2023-02-09 03:35 分类:问答TempData are always empty
I want to use TempData to store messages between Post and followed redirect but TempData are always empty.[详细]
2023-02-05 01:02 分类:问答Dynamic TempData in ASP.NET MVC 3
I\'vm been trying to get a开发者_开发技巧 site running using ASP.NET MVC 3 and I came across the new dynamic ViewModel. It\'s great to pass values quickly to the view without using \"magic strings\".[详细]
2023-01-27 05:10 分类:问答How could I handle an asp.net mvc error AND use the same view from the controller?
I have actions like this: [AcceptVerbs(HttpVerbs.Post)] public ActionResult New(Product product) { try { if(ModelState.IsValid)[详细]
2023-01-26 14:35 分类:问答TempData persisting after read in ASP.NET MVC 2
In ASP.NET MVC 2, TempData values persist until the session ends or until they are read.In the words of Microsoft...[详细]
2023-01-20 21:42 分类:问答Problem with TempData and Faked HttpContext using ASP.NET MVC
I am working with a faked HttpContext (code provided in the end) and probably I am missing something because I can\'t access TempData collection (forth line of SetFakeControllerContext method). Every[详细]
2023-01-18 13:15 分类:问答ASP.Net MVC TempData - how to keep state
We are using ASP.Net MVC TempData to store form data between page refreshes.We have a button on the page that allows the user to perform a certain action.If the user clicks this button one time, it wo[详细]
2023-01-17 15:33 分类:问答ASP.NET MVC Store TempData in Cookie
Is there a way to let TempData store开发者_运维知识库 in a browser\'s cookie instead of Session State. I have Session State disabled on my site.[详细]
2023-01-17 12:08 分类:问答