MVC Video :- Difference between viewdata,viewbag,tempdata and session.(MVC Interview questions)

  Рет қаралды 279,295

.NET Interview Preparation videos

.NET Interview Preparation videos

Күн бұрын

Пікірлер: 74
@dnfvideo
@dnfvideo 3 жыл бұрын
Do not miss our Interview Question video series 25 Important ASP.NET Interview Questions : kzbin.info/www/bejne/ponQfpejf7p2Zsk 30 Important C# Interview Questions : kzbin.info/www/bejne/eHzcn3h4hdacf68 25 Angular Interview Questions : kzbin.info/www/bejne/Y5vIoKx6f6mmia8 5 MSBI Interview Questions : kzbin.info/www/bejne/a3abYmiXjaaqj7M
@dnfvideo
@dnfvideo 10 жыл бұрын
Want to Learn MVC 5 in 2 days start from the below video :- goo.gl/1br5mb The following syllabus has been covered in Learn MVC 5 in 2 days Learn MVC 5 in 2 days Lab 1 : - Simple Hello world(20 Minutes) Lab 2 : - Explain MVC Routing(10 Minutes)? Lab 3 : - Explain ViewData, ViewBag, TempData & Session Variables?(20 Minutes) Lab 4 :- Explain Model and Strongly typed views (20 minutes)? Lab 5 : - Explain Model Binders(10 minutes)? Lab 6 :- Why MVC and MVC vs Webforms ? (30 minutes) Lab 7 :- Explain TempData , Peek and Keep ? (10 Minutes) Lab 8 : - Explain Data Annotations and HTML Helpers classes?(31 Minutes) Lab 9 : - What is the need of ViewModel in MVC? (10 Minutes) Lab 10 : - How can we use Entity Framework in MVC?(20 minutes) Lab 11 : - How to implement viewmodel, partial view and webgrid?(45 minutes) Lab 12 : - What is the difference between ActionResult and ViewResult in MVC?(10 minutes) Lab 13 :- How to implement Ajax using Json and Jquery in MVC ? (60 Minutes) Lab 14 : - What is the use of Async Controllers in MVC?(20 minutes) Lab 15 :- How to deploy MVC Application on IIS ? (10 minutes) Lab 16 :- How can we do Windows and Forms Authentication in MVC? (50 Minutes) Lab 17 : - How can we use MVC areas for better modular development ? (10 Minutes) Lab 18 :- How to implement MVC with Angular ? (60 minutes) ? Lab 19 :- Can we Overload MVC Action methods ? (10 Minutes) Lab 20 :- How to improve Reusability using Angular ? (20 Minutes) ? Lab 21 :- What is the need of WebAPI in MVC ? (30 Minutes) Lab 22 : - How to do exception handling in MVC? (30 Minutes) Lab 23 :- How to do update and delete using MVC , WebAPI , EF and Angular? (30 Minutes) Lab 24 : - How to use MVC Webgrid?(30 minutes) Lab 25 :- How to implement Validation using Angular and MVC (30 minutes)? Lab 26 :- What is SPA (Single page application)? Lab 27 :- How to Organize MVC project and Understanding CORS issue ? (42 minutes) Lab 28 :- Explain the importance of DisplayModes ? (10 minutes) Lab 29 :- How to do unit testing with MVC projects (30 minutes)? Lab 30 :- How to implement SPA using Angular Routing ? Lab 31 :- How to create decoupled systems using MVC DI ? Lab 32 :- How can we have multiple submit buttons in ASP.NET MVC ? Lab 33 : - What is the importance of AntiForgery in MVC? Lab 34 :- What is the importance of ValidateInput and AllowHTML in MVC? Visit us at www.questpond.com for more details
@naeemahmad9698
@naeemahmad9698 9 жыл бұрын
.NET Interview Preparation videos sir from where i can get complete video series please guide
@dnfvideo
@dnfvideo 9 жыл бұрын
+Naeem Ahmad Please visit www.questpond.com and mail to us on questpond@questpond.com
@monsieurrodriguez9687
@monsieurrodriguez9687 Жыл бұрын
you didn't test the same name in the viewbag controllers communication example, at minute eleven, you put ViewBag.CurrentDateTime while actually it was named ViewBag.CurrentDateANDTime. Anyway, thanks for the video, the point was explained successfully
@dpkbahuguna
@dpkbahuguna 11 жыл бұрын
The session is very descriptive and informative to set the basics of MVC. Thanks...Keep posting the Training :-)
@TubaMirza-co7ql
@TubaMirza-co7ql 6 ай бұрын
11 years old video waw .. still knowledgeable
@praveendubey1994
@praveendubey1994 10 жыл бұрын
Thanks , Awesome, Short, Simple and helps to understand exactly what is needed.
@RaviHandsome
@RaviHandsome 10 жыл бұрын
Example is incorrect though concept is right. CurrentDateAndTime and CurrentDateTime are different at 12:20
@wase39
@wase39 11 жыл бұрын
very simple and elegant lesson
@rprabhuit
@rprabhuit 10 жыл бұрын
wrong statement on TempData usage. TempData can be used from controller to view as well. The TempData will be reset to null, only after it was read or used. But we can keep the data's in TempData after read by calling TempData.Keep() function. The Keep() should be called immediately after TempData object used.
@prateekbhardwaj9943
@prateekbhardwaj9943 9 жыл бұрын
+Prabhu Raja Exactly i was thinking the same.. but every where i read this that tempdata for controller to controller ... ? is it true for mvc 3? or in mvc 4 we can use controller to view (one cycle)
@nimitjoshi8639
@nimitjoshi8639 8 жыл бұрын
I have worked on MVC 5 project and in that i have used TempData to pass the info from Controller to View.
@mohamedsaied5780
@mohamedsaied5780 7 жыл бұрын
msdn.microsoft.com/en-us/library/system.web.mvc.tempdatadictionary(v=vs.118).aspx You can use a TempDataDictionary object to pass data in the same way that you use a ViewDataDictionary object. However, the data in a TempDataDictionary object persists only from one request to the next, unless you mark one or more keys for retention by using the Keep method. If a key is marked for retention, the key is retained for the next request. A typical use for a TempDataDictionary object is to pass data from an action method when it redirects to another action method. For example, an action method might store information about an error in the controller's TempData property (which returns a TempDataDictionary object) before it calls the RedirectToAction method. The next action method can then handle the error and render a view that displays an error message.
@theUnboxerfalcon
@theUnboxerfalcon 11 ай бұрын
Thank you for a brilliant video..
@ims4666
@ims4666 3 жыл бұрын
Awesome explanation....
@bjblk1
@bjblk1 8 жыл бұрын
Excellent video. Thank you very much. I will eventually watch all of your videos.
@MrSanjdhi
@MrSanjdhi 11 жыл бұрын
nice efforts for beginners and all. Keep it up.
@VannaraLoch
@VannaraLoch 10 жыл бұрын
but your two viewBag variable is not the same...one is CurrentDateAndTime one is CurrentDateTime
@kashyapkaki2377
@kashyapkaki2377 6 жыл бұрын
Exactly! Same doubt here.
@amishkumar5320
@amishkumar5320 10 жыл бұрын
enjoyed alot with your videos keep good works on thanks
@CodeSbyAniz
@CodeSbyAniz 4 жыл бұрын
Great Job. Thanks for the video
@rohanthakur6136
@rohanthakur6136 6 жыл бұрын
Excellent video sir. Thank you very much. how to get MVC Asp.Net Q & A Series.
@mohamedsaied5780
@mohamedsaied5780 7 жыл бұрын
Good video and good explanation regardless the small mistakes.
@chandanadas7860
@chandanadas7860 5 жыл бұрын
tempdata is controller to controller and also controller to view
@ARV-sf5td
@ARV-sf5td 6 жыл бұрын
What is the difference between tempdata keep and peek
@Robsonsantosxd
@Robsonsantosxd 9 жыл бұрын
Could anyone send the link of the next lesson ? i couldn't find it. Great Lesson BTW!
@TheAsimiy
@TheAsimiy 11 жыл бұрын
Very nice tutorial .... thanks Sir
@JayadevNelli
@JayadevNelli 7 жыл бұрын
Very good video, thank you for posting.
@manishkjanu
@manishkjanu 11 жыл бұрын
Very useful information. Thanks!
@akshaygaikwad817
@akshaygaikwad817 9 жыл бұрын
you have given wrong viewbag name in sampleview1 while geting its data in string varible and shown null value
@shailabgupta8746
@shailabgupta8746 9 жыл бұрын
+akshay gaikwad, yes i also caught this problem
@nimitjoshi8639
@nimitjoshi8639 8 жыл бұрын
Yes. I was thinking about to mention it. But i saw your comment which is related to this. +1
@Nandakishore48
@Nandakishore48 7 жыл бұрын
yaa dude you are right
@mohamedsaied5780
@mohamedsaied5780 7 жыл бұрын
yes, CurrentDateAndTime while in another CurrentDateTime but it will lead to null also if he typed it correct as viewbag cann't transfer data between controllers
@218manish
@218manish 10 жыл бұрын
Nice & useful Tutorial
@coolayer
@coolayer 11 жыл бұрын
Thanks Brother! It was very helpful.
@manoharjulakanti8688
@manoharjulakanti8688 8 жыл бұрын
hi sir, i used temp data in view and also in action method ...then also data is transferring from action method to view.....
@akashverma1640
@akashverma1640 2 жыл бұрын
Sir at 12:07 you have used wrong name of variable in viewbag i.e viewbag.CurrentDateTime instead of Viewbag.CurrentDateAndTime that is why it's null.
@bhuvanatn
@bhuvanatn 11 жыл бұрын
Thanks very much..very helpful
@knowledgeys6652
@knowledgeys6652 5 жыл бұрын
I believe Tempdata sends the data from one view to other View..
@arunvenkatesh6464
@arunvenkatesh6464 5 жыл бұрын
PLS MAKE VIDEO ON CASCADING DROP DOWN LIST LOAD DATA FROM DATABASE AND SAVE DATA TO DATATBASE
@92_shwetadhande92
@92_shwetadhande92 Жыл бұрын
sir please provide link of how to pass data from view to controller?
@talalshoaib3099
@talalshoaib3099 8 жыл бұрын
Very nice video thank you sir :)
@bhaktilife111
@bhaktilife111 2 жыл бұрын
So beautiful
@SultanAhmed-xx1oz
@SultanAhmed-xx1oz 2 жыл бұрын
THank YUo
@fcinternetmarketing
@fcinternetmarketing 11 жыл бұрын
Love this video.
@dnfvideo
@dnfvideo 11 жыл бұрын
Sorry it was my mistake to type the wrong property name.
@odytrice
@odytrice 11 жыл бұрын
You can also pass TempData to the View
@rohitashkumar7765
@rohitashkumar7765 8 жыл бұрын
Nice video
@niteshkr.upadhyay3506
@niteshkr.upadhyay3506 3 жыл бұрын
Is it really wrong? At 11:17 he added a value in ViewBag.CurrentDateAndTime but was receiving with ViewBag.CurrentDateTime That's wrong na? How will it fetch the value?
@rohitshinde8145
@rohitshinde8145 5 жыл бұрын
helpful ty.
@prateekbhardwaj9943
@prateekbhardwaj9943 7 жыл бұрын
you should correct the information, this is a very old video. controller to view is possible in tempdata aslo
@sinchanar440
@sinchanar440 5 жыл бұрын
Sir, I have a question please give me a reply. How do I set session for multiple user login and I want to differentiate as Admin and local user...
@RanjeetKumar-gg7ie
@RanjeetKumar-gg7ie 4 жыл бұрын
through authorization differentiate between admin & local user , also set HttpContext.Current.Session.Timeout = x ,( x is time ) to set diff timeout as per user accessibility..
@RanjeetKumar-gg7ie
@RanjeetKumar-gg7ie 4 жыл бұрын
Create a master base class inherit it on master page if you are storing information in session about user type and write a function if(Session["admin"] !=null){ if(Session["admin"].ToString() == "True") { HttpContext.Current.Session.Timeout = 120; }if(Session["user"].ToString() == "True") {HttpContext.Current.Session.Timeout = 60; }else {HttpContext.Current.Session.Timeout = 30;} } or you can replace session with profile if you are using profile
@amruthbinish
@amruthbinish 11 жыл бұрын
how can we create mvc views faster and make them strong typed by using html helper ---where this video?
@sujanvaland
@sujanvaland 11 жыл бұрын
its not that we tempdata is not maintain from Controller to View, we can maintain the data
@ragavaragala9116
@ragavaragala9116 4 жыл бұрын
In action method samlpeview you mentioned current dateandtime but second action method you mentioned current datetime you don't mentioned and
@tsogiaidze
@tsogiaidze 10 жыл бұрын
Great!
@NeelanjanaDutta
@NeelanjanaDutta 7 жыл бұрын
I cannot see any view engine drop down list in the add view page. so I cannot open aspx view. kindly suggest.
@dnfvideo
@dnfvideo 7 жыл бұрын
Please mail us your query at questpond@questpond.com
@sameerkhatri1918
@sameerkhatri1918 7 жыл бұрын
If you get the solution please let me know or you can send me an email on ersameer.khan05@gmail.com
@multanimohsin8800
@multanimohsin8800 9 жыл бұрын
where is the lab 9
@prashantkumar15689
@prashantkumar15689 4 жыл бұрын
In case of view bag you set another variable and tried to get value from wrong variable. Don't try to confuse viewers and don't anything wrong. Concept is right what you said but demonstrated wrongly.
@donfeto7636
@donfeto7636 6 жыл бұрын
information are not complete you give so little info
@balaram438
@balaram438 10 жыл бұрын
thanks you so much it was nice explanation
@s3123ww
@s3123ww Жыл бұрын
@questpond : Now, We can pass data from controller to view using Tempdata. Please remove your old videoz, i beg. Outdated information can be harmful to your brand.
@mayanksingh3277
@mayanksingh3277 8 жыл бұрын
hi
@dnfvideo
@dnfvideo 8 жыл бұрын
Hello
@bjblk1
@bjblk1 8 жыл бұрын
Excellent video. Thank you very much. I will eventually watch all of your videos.
@bjblk1
@bjblk1 8 жыл бұрын
Excellent video. Thank you very much. I will eventually watch all of your videos.
Post vs Put
23:43
.NET Interview Preparation videos
Рет қаралды 94 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 7 МЛН
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 7 МЛН
Why ASP.NET MVC and MVC vs WebForms ? ( Learn MVC  5 series)
28:57
.NET Interview Preparation videos
Рет қаралды 249 М.
What are MVC Asynch controllers and thread starvation ? ( MVC interview questions with answers)
13:04
Interface in C#
38:55
.NET Interview Preparation videos
Рет қаралды 163 М.
c# (Csharp) and .NET :- Difference between IEnumerable and IEnumerator.
13:39
.NET Interview Preparation videos
Рет қаралды 496 М.
Dependency Injection using Microsoft Unity Application block ( DI IOC) - 30 minutes training
33:19
.NET Interview Preparation videos
Рет қаралды 441 М.
TempData in ASP NET Core
9:35
kudvenkat
Рет қаралды 24 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 7 МЛН