Click here to Skip to main content
15,895,740 members
Articles / Web Development / ASP.NET / ASP.NET4.0

What is ViewData, ViewBag and TempData? – MVC Options for Passing Data Between Current and Subsequent Request

Rate me:
Please Sign up or sign in to vote.
4.76/5 (148 votes)
15 Oct 2012CPOL2 min read 1.1M   110  
What is ViewData, ViewBag and TempData?
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Singapore Singapore
A life-long-learner, maker and soft music fan. Likes building things to solve problems. Years of successful records serving mid and large scale .NET applications in domestic and international client environment. Expertise in different areas of software development life cycles and Software Architecture.

Always looks for new technology and loves to get hands dirty Smile | :)

Comments and Discussions