Passing data to view in ASP NET Core MVC

preview_player
Показать описание
In this video we will discuss different ways of passing data to a View from a Controller in ASP.NET Core MVC.

Text version of the video

Healthy diet is very important for both body and mind. We want to inspire you to cook and eat healthy. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking.

Slides

ASP.NET Core Text Articles & Slides

ASP.NET Core Tutorial

Angular, JavaScript, jQuery, Dot Net & SQL Playlists
Рекомендации по теме
Комментарии
Автор

Brilliant video, thank you. In 2 minutes, I understood many gray areas of passing data from Controller to View.

BlueHorse
Автор

Brother, thank you very much for creating this.

Fulakitele
Автор

Thank you my friend this has really helped me :)

kieroncairns
Автор

Thanks for the video series, in this video we discussed ViewData, ViewBag and strongly typed view but seems we forgot the TempData here.

jaiprakashbarnwal
Автор

We can also create viewmodel and bind it using @model tag to view

nh--
Автор

I am not able use skip option even once in whole video because he taught only required and important points...
Thank you

srikanthtekumudi
Автор

What about vice-versa. How can we pass data to the controller from view?

SyedKumailHaiderNaqvi
Автор

I am getting NullReferenceException: Object reference not set to an instance of an object.
can anyone help me out

vibharajput
Автор

With the new version of MVC Core 3.0 we have a new service call RazorRuntimeCompilation. The only think you have to do is, install the nuget package and add the sentence in the ConfigureServices Method of the Startup class.

ualvarez
Автор

oh shit so this is where the @model convention comes from and passing a viewmodel to a view

chadgregory
Автор

My Visual Studio 2017 Browser reload on save doesn't work

iamwitthaya
Автор

ViewData["employee"] = Model;
ViewData["PageTitle"]= "employee Details";
return View(); I M FACING THIS ERROR Cannot apply index with[] to an expression type 'object'
plz can anybody help me

sonayadav
Автор

Hi nice, but I get the message "The type or namespace name 'EmployeeManagement' could not be found (are you missing a using directive or an assembly reference?)" then I can´t use the var employee.

armandoramirez
Автор

ViewData["employee"] = Model;
ViewData["PageTitle"]= "employee Details";
return View();

sonayadav
Автор

Hello Sir
Forgot to include Tempdata. In all interview it has been asked.

mdabuzar
Автор

"Passing Data to view in ASP NET Core MVC" should be called: "ViewData in ASP NET Core MVC"

ninjaskter