Passing data to view in ASP NET Core MVC

Passing data to view in ASP NET Core MVC

kudvenkat

5 лет назад

155,441 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@chadgregory9037
@chadgregory9037 - 01.06.2022 21:52

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

Ответить
@vibharajput9085
@vibharajput9085 - 23.01.2022 13:09

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

Ответить
@suryasuryakumar
@suryasuryakumar - 26.08.2021 19:23

What about TempData?

Ответить
@sonayadav3376
@sonayadav3376 - 10.04.2021 01:40

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

Ответить
@sonayadav3376
@sonayadav3376 - 10.04.2021 01:36

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

Ответить
@CarlosWolfram
@CarlosWolfram - 12.02.2021 07:53

Eternamente agradecido 🙏

Ответить
@branalana
@branalana - 25.11.2020 16:24

Brother, thank you very much for creating this.

Ответить
@maviyaqureshi3264
@maviyaqureshi3264 - 16.11.2020 12:01

Awesome sir

Ответить
@SyedKumailHaiderNaqvi
@SyedKumailHaiderNaqvi - 29.10.2020 20:00

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

Ответить
@BlueHorse911
@BlueHorse911 - 24.08.2020 09:51

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

Ответить
@carlosinigo9225
@carlosinigo9225 - 30.06.2020 08:40

Amazing tutorials!

Ответить
@kieroncairns7981
@kieroncairns7981 - 30.06.2020 01:30

Thank you my friend this has really helped me :)

Ответить
@omkarprakashbhosale8338
@omkarprakashbhosale8338 - 10.06.2020 08:02

Why Did U Not Use ViewData.Model??

Ответить
@ninjask8ter
@ninjask8ter - 02.05.2020 07:10

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

Ответить
@ualvarez95
@ualvarez95 - 19.04.2020 21:44

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 Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation and add the sentence "services.AddMvc().AddRazorRuntimeCompilation();" in the ConfigureServices Method of the Startup class.

Ответить
@iamwitthaya
@iamwitthaya - 06.02.2020 11:55

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

Ответить
@srikanthtekumudi3948
@srikanthtekumudi3948 - 12.01.2020 21:25

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

Ответить
@mdabuzar2130
@mdabuzar2130 - 22.11.2019 22:45

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

Ответить
@jaiprakashbarnwal2121
@jaiprakashbarnwal2121 - 02.08.2019 17:00

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

Ответить
@avisheknandi9166
@avisheknandi9166 - 30.05.2019 13:44

Great Video sir..

Ответить
@ivandrofly
@ivandrofly - 13.03.2019 02:54

thank you

Ответить
@deepwoodsengineering3763
@deepwoodsengineering3763 - 12.03.2019 10:03

You're a legend buddy

Ответить
@armandoramirez9758
@armandoramirez9758 - 12.03.2019 05:02

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.

Ответить
@MmMm-tg5mq
@MmMm-tg5mq - 07.03.2019 09:04

nice nice nice

Ответить
@phanidivi3613
@phanidivi3613 - 07.03.2019 09:00

very nice video venkat sirr

Ответить
@nh--66
@nh--66 - 06.03.2019 23:21

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

Ответить