Hi,
can we use tempdata value in throughout controller like session?
Please explain me
Thanks in adv.
Chakri.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Francis SusaimichaelRank #466 · 5.4K reputationPosted Dec 27, 2015, 11:28 AM EST
Rupali ShindeRank #539 · 4.5K reputationPosted Dec 27, 2015, 6:04 PM EST
The Life time of the TempData can be managed using the Keep() method.
Session:
Like TempData the value must be type-casted when it is used for processing.
http://www.dotnetcurry.com/aspnet-mvc/1074/aspnet-mvc-pass-values-temp-data-session-request