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

Mention what are the file extensions for razor views?

1 Answers  


What is a mvc in medical terms?

1 Answers  


What is mvc technology?

1 Answers  


What is mvc (model view controller)?

1 Answers  


What are main benefits of using mvc?

1 Answers  


How you can manage code security in mvc?

1 Answers  


What is meaning of View in MVC?

1 Answers   PUCIT,


which filters are executed in the end?

1 Answers  


List out the types of result in mvc?

1 Answers  


What is mvc and its advantages?

1 Answers  


What is mvc httppost?

1 Answers  


Who invented mvc?

1 Answers  


Categories