Here Mudassar Ahmed Khan has explained with an example, how to use Keep and Peek functions of TempData in ASP.Net MVC Razor.
The Keep function is used to preserve the data of TempData object even after the value is read while the Peek function is used to read the value without clearing it.
↧