tempdata Questions
1
Solved
I used TempData to pass data from an action to another,but when i refresh the page
the value of TempData becomes null,
how I can solve this probleme?
Thanks,
Duodenary asked 25/6, 2012 at 17:25
3
Solved
Most of my action methods return PartialViews on success and RedirectToAction results on failure. For that, I would like to copy the model state errors into TempData so I could display them to the ...
Margie asked 7/5, 2011 at 8:27
4
Solved
Because I use same keys for TempData over and over again, I would like to make it easier to keep track of these keys.
It would be great if eventually I could write something like this:
MyTempData....
Delaney asked 8/6, 2012 at 21:43
1
Solved
I was trying to make one site as session less. So add <sessionState mode="Off" /> to my web.config. After that if I execute
Session["test"] = "yes";
I get an error “Object reference not...
Approbation asked 27/5, 2012 at 8:55
2
Solved
Although the question title appears a bit subjective I am sure there is not a lot to discuss. I am currently working on a MVC project where I am using TemData container in some areas. When I read t...
Uncourtly asked 3/2, 2012 at 18:42
6
Solved
I need a temporary directory, but I want full control over its creation and deletion.
I will use this directory to place git repositories which I want to monitor for new commits, so I need to stor...
5
Solved
I am using the TempData in order to preserve my model in when using a RedirectToAction. It works fine, but I have a nagging feeling that it might not be the right thing to do. I really try to avoid...
Meredeth asked 23/11, 2011 at 14:12
2
Solved
In ASP.NET MVC, there's a TempData which can pass data one time from one page to another. What's the equivalent for this in ASP.NET?
1
Solved
I'm trying to crate a custom action filter attribute. And some where, I need facilities, such us TempData[key] and TryUpdateModel... My custom attribute class deriving from the ActionFilterAttribut...
Neckcloth asked 23/11, 2010 at 9:48
1
Solved
In ASP.NET MVC 2, TempData values persist until the session ends or until they are read. In the words of Microsoft...
The value of TempData persists until
it is read or until the session times
...
Ankh asked 20/10, 2010 at 21:29
1
I've been trying to use CookieTempDataProvider to pass a basic message between a post (entity update) and a get (entity list) using the RedirectToAction method. When using the default TempData impl...
Weiler asked 25/8, 2009 at 7:42
1
Solved
Is it OK to catch my exceptions in the controller's actions? Is there any better way of doing it? I'm actually catching my exceptions in the controller and using TempData to show a message to the u...
Trabzon asked 13/10, 2009 at 20:46
4
Solved
When using TempData, my understanding is that it will keep whatever you put in it around for only one request. So when using TempData to retain data across a redirect (in order to use the Post-Requ...
Wimble asked 25/10, 2008 at 0:10
2
Solved
I am using temp data as follow in my controllers - very simple, when there is a problem:
TempData("StatusMessage") = "You have no items set to Auto-Ship."
Then on every page I have a user contro...
Brakeman asked 23/1, 2009 at 16:20
1
Solved
What is the actual use of TempData collection in asp.net MVC, I need pros and cons of that collection, and when do I need to use it, which views it is shared upon, or any useful information a...
Blues asked 24/11, 2008 at 7:2
© 2022 - 2024 — McMap. All rights reserved.