1. Keep data in TempData :
The Temp.Keep() method ensure that the data is preserved across multiple request even after , it has been read once.
2. Peek data in TempData :
The TempData.Peek() method allows you to read the data without removing it. This is useful when you want to check the value but still want it to be available for future requests.
#aspdotnetcore #aspdotecore8 #aspdotnetcore8mvc #sqlqueryinterviewquestionsandanswers #aspdotnetcore #coding
Asp.net core tutorial
Entity framework core tutorial
Asp.net MVC tutorial