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