Introduction:
Here we will learn difference between viewbag, viewdata, tempdata in asp.net mvc with example or viewdata vs tempdata vs viewbag in asp.net mvc or what is the use of tempdata, viewbag and viewdata in asp.net mvc with example. Generally we will use tempdata, viewdata and viewbag in asp.net mvc to send data from controller to view.
Description:
In previous articles I explained asp.net mvc action results in controller with example, asp.net mvc url routing with example, asp.net mvc create model in application with example, asp.net mvc complete tutorial for beginners with example, asp.net mvc action verbs (post, put, get and delete) with example and many articles relating to asp.net mvc, asp.net, c#,vb.net. Now I will explain difference between tempdata, viewdata and viewdata in asp.net mvc application with example.
In previous articles I explained asp.net mvc action results in controller with example, asp.net mvc url routing with example, asp.net mvc create model in application with example, asp.net mvc complete tutorial for beginners with example, asp.net mvc action verbs (post, put, get and delete) with example and many articles relating to asp.net mvc, asp.net, c#,vb.net. Now I will explain difference between tempdata, viewdata and viewdata in asp.net mvc application with example.