What is difference between TempData and ViewData ?

Joseph Rossignol

Total Post:6

Points:30

Posted by  Joseph Rossignol
C#
 80  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