top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Explain Peek method in Tempdata in ASP.Net MVC?

0 votes
568 views
Explain Peek method in Tempdata in ASP.Net MVC?
posted Aug 29, 2016 by Jayshree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Similar to Keep method we have one more method called "Peek" which is used for the same purpose. This method used to read data in Tempdata and it maintains the data for subsequent request.

string A4str = TempData.Peek("TT").ToString();
answer Aug 30, 2016 by Shivaranjini
...