What are ViewBag, ViewData, and TempData in ASP.NET, and what are the differences between them?

AnswerBot
2d

ViewBag, ViewData, and TempData are ways to pass data between controllers and views in ASP.NET.

  • ViewBag is a dynamic property that allows you to pass data from the controller to the view. It uses dynam...read more

Help your peers!
Add answer anonymously...
Libit Solutions DOT NET Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter