Hi! Is there an equivalent for the ViewData/ TempData object in ASP.NET MVC for ASP.NET?
What I wanna do is to keep a Session item only alive for one request.
Thanks in advance!
Edit:
The problem is that I have one view for updating and creating. When the view is in update mode then the session item is filled or it has to be already filled(!) and in the create mode the session item is null. So when I am in creating mode and send the page back to serve the mode changed into edit mode and a button on the view is enabled because the session item was filled. The mode depends on the session item. And the Session item can be filled by another view or when I create a contact successfully. The Session item value is the contactId.