Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the use of keep and peek in “tempdata”?



What is the use of keep and peek in “tempdata”?..

Answer / Gyanendra Kumar

In ASP.NET MVC, TempData maintains data for a single request and response cycle by default. However, there are two special methods available: Keep and Peek. Keep adds the data to TempData with a duration of one additional request, ensuring that it survives the immediate response and remains accessible in the next controller action. On the other hand, Peek retrieves data from TempData without removing it, allowing you to check its value before adding or replacing anything.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MVC Model View Controller Interview Questions

Steps for the execution of an MVC project?

1 Answers   HCL,


List out a few different return types of a controller action method?

1 Answers  


What are viewmodels in mvc?

1 Answers  


Is mvc a structural design pattern?

1 Answers  


What are the filter in mvc?

1 Answers  


What is the advantage of using MVC pattern?

1 Answers   QuestPond,


What is view engine in mvc?

1 Answers  


What is mvc core?

1 Answers  


What is cshtml in mvc?

1 Answers  


What are action filters in mvc?

1 Answers  


What is strongly typed view in mvc?

1 Answers  


Is viewstate available in mvc?

1 Answers  


Categories