What is difference between TempData and ViewData ?

Posted by  Joseph Rossignol
C#
 308  View(s)
Ratings:
Rate this:
  1. What is difference between TempData and ViewData ?

    TempData” maintains data for the complete request while “ViewData” maintains data only from the Controller to the view.

Answer