aspdotnet-suresh offers articles and tutorials,csharp dot net, articles and tutorials,VB.NET Articles,Gridview articles,code examples of 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Asp.Net MVC TempData vs ViewData vs ViewBag with Example

Feb 24, 2016

Here we will learn difference between tempdata, viewdata and viewbag in mvc with example or what is the use of viewdata, tempdata and viewbag in mvc and when to use it or mvc viewdata vs tempdata vs viewbag with example. Generally we will use these three things to send data from controller to view in mvc.

In previous articles I explained various return types of action results in mvc, mvc url routing with example, create custom html helpers in mvc, mvc action verbs (post, put, get and delete) with example and many articles relating to mvc,, c#, Now I will explain what is the difference between tempdata, viewdata and viewdata in mvc application with example.

Check following url to know differences between viewdata, viewbag and tempdata in mvc with example. Here we covered complete tutorial to know how to use tempdata, viewdata and viewbag in mvc application with example in detailed manner.

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest,, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email


Give your Valuable Comments

Note: Only a member of this blog may post a comment.

© 2015 All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.