Top "Tempdata" questions

TempData is a dictionary used in C# MVC to pass data between different controllers or different actions.

ASP.NET MVC does browser refresh make TempData useless?

If I redirect to a new page passing TempData to initialise the page it works fine, however if the user …

asp.net-mvc tempdata
TempData won't destroy after second request

I'm putting a value into TempData on first request in an actionfilter. filterContext.Controller.TempData["value"] = true; after that a …

asp.net-mvc asp.net-mvc-3 tempdata
PHP: Alternative to SESSIONS

I have a PHP application that relies on session variables quite a lot. After login the user get redirected to …

php global-variables session-variables tempdata
TempData Not Being Cleared

I'm working on an ASP.NET MVC 3 web application, where i use TempData to store a model object, in the …

c# asp.net-mvc asp.net-mvc-3 tempdata
ASP.NET TempData persists between requests

I am using temp data as follow in my controllers - very simple, when there is a problem: TempData("StatusMessage") = "…

asp.net-mvc tempdata
asp.net mvc - Detecting page refresh

I understand that are similar question on StackOverflow about this problem, but none of it solved my issue, so i'm …

asp.net-mvc tempdata browser-refresh
Null TempData when passing data from controller to view MVC

I have the following class in a Controller passing data to a View: public ActionResult ControllerToView(){ ... TempData["example"] = "this is …

c# asp.net-mvc viewbag tempdata
Passing an object array as TempData[] to view

I would like to return two values from a post action to the view in a RedirectToAction . TempData[] seems like …

c# asp.net asp.net-mvc razor tempdata
Using TempData while <sessionState mode="Off" />

I was trying to make one site as session less. So add <sessionState mode="Off" /> to my web.…

asp.net asp.net-mvc session tempdata
Asp.Net core Tempdata and redirecttoaction not working

I have a method in my basecontroller class that adds data to tempdata to display pop-up messages. protected void AddPopupMessage(…

asp.net-core-2.2 tempdata redirecttoaction