Introduction:
Here we will learn difference between tempdata, viewdata and viewbag in asp.net mvc with example or what is the use of viewdata, tempdata and viewbag in asp.net mvc and when to use it or asp.net mvc viewdata vs tempdata vs viewbag with example. Generally we will use these three things to send data from controller to view in asp.net mvc.
Description:
In previous articles I explained various return types of action results in asp.net mvc, asp.net mvc url routing with example, create custom html helpers in asp.net mvc, 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 what is the difference between tempdata, viewdata and viewdata in asp.net mvc application with example.
In previous articles I explained various return types of action results in asp.net mvc, asp.net mvc url routing with example, create custom html helpers in asp.net mvc, 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 what is the difference between tempdata, viewdata and viewdata in asp.net mvc application with example.