Difference between ( ViewData,TempData, ViewBag,Session) in asp.net mvc c# Hindi/Urdu | M-Tech Sol

  Рет қаралды 4,690

M-Tech Sol

M-Tech Sol

4 жыл бұрын

In this MVC ( Model view controller) video we will try to understand what is the difference between viewdata,viewbag,tempdata and session.This is an interesting MVC interview question and below is a textual answer for the same.
#mvctutorial #aspdotnetmvc5tutorial #MVC #ViewData #ViewBag #TempData
#default
#index
Temp data: - Helps to maintain data when you move from one controller to other controller or from one action to other action. In other words when you redirect, "tempdata" helps to maintain data between those redirects. It internally uses session variables.
View data: - Helps to maintain data when you move from controller to view.
View Bag: - It's a dynamic wrapper around view data. When you use "Viewbag" type casting is not required.
Difference between ( ViewData,TempData, ViewBag,Session) in asp.net mvc c# Hindi/Urdu | M-Tech Sol

Пікірлер: 4
@RohanSingh-kb9qq
@RohanSingh-kb9qq Жыл бұрын
Good explain
@razzverma663
@razzverma663 3 ай бұрын
I just watched through this video. According to theory explanation . TempData demo for data transfer from one controller to another is not explained. Also please show how session is used to store data at browser end. The rest of the explanations given are good and appreciable.
@masoodazhar1342
@masoodazhar1342 4 жыл бұрын
nice work
@neelramnani2517
@neelramnani2517 4 жыл бұрын
Nice explanation sir
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 56 МЛН
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 63 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 2,8 МЛН
MVC Video :- Difference between viewdata,viewbag,tempdata and session.(MVC Interview questions)
18:50
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27