TempData and ViewData not rendering in a deployed ASP MVC app

Posted by ojcar on Stack Overflow See other posts from Stack Overflow or by ojcar
Published on 2010-04-13T22:09:01Z Indexed on 2010/04/13 22:13 UTC
Read the original article Hit count: 348

Filed under:

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>
<% } %>

© Stack Overflow or respective owner

Related posts about asp.net-mvc