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:
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.
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.
I want to use TempData to store messages between Post and followed redirect but TempData are always empty.
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\".
I have actions like this: [AcceptVerbs(HttpVerbs.Post)] public ActionResult New(Product product) { try { if(ModelState.IsValid)
In ASP.NET MVC 2, TempData values persist until the session ends or until they are read.In the words of Microsoft...
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
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
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.