TempData and ViewData not rendering in a deployed ASP MVC app
- by ojcar
I use TempData and ViewData to display messages for an asp mvc application. They are part of the Site Master.
For some reason, neither TempData or ViewData are showing any information. They do work as expected in the development environment but not in production.
Any ideas of what setting I need to be looking at?
The code is like this:
<% if (TempData["errorMsg"] != null)
{ %>
<h2><%= TempData["errorMsg"]%></h2>
<% } %>