I just started to learn MVC and am trying to understand how it works.
I don\'t want to send users to different views for all edit, insert and list operations.
<
This article explains how to use TempData:
One of the more annoying things to deal with in Web programming is errors on a form. More specifically, you want to display error messages, but you want to keep the previously entered data. We've all had the experience of making a mistake on a form that has 35 fields, only to be presented with a bunch of error messages and a new, blank form. The MVC Framework offers TempData as a place to store the previously entered information so that the form can be repopulated. This is something that ViewState actually made very easy in Web Forms, since saving the contents of controls was pretty much automatic. ... TempData is a dictionary, much like the untyped ViewData. However, the contents of TempData only live for a single request and then they're deleted.