Edit view in asp net core mvc

preview_player
Показать описание
In this video we will discuss implementing Edit view to edit existing data.

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

We want to display existing employee data on edit view. The user can then change the details and click the Update button to update the data in the underlying database.

In this video we will discuss implementing edit view and in our next video we will discuss updating the data. When the Cancel button is clicked, redirect the user to the list view.
Рекомендации по теме
Комментарии
Автор

That asp-route-id was that one thing that was missing from every other tutorial and i couldnt get my head around it. Thank you very much

TheMrZiege
Автор

At 11:01 I get this error message: CS1061 'EmployeeCreateViewModel' does not contain a definition for 'Photos' and no accessible extension method 'Photos' accepting a first argument of type 'EmployeeCreateViewModel' could be found (are you missing a using directive or an assembly reference?) EmployeeManagement 44 Active

Error CS1061 'EmployeeCreateViewModel' does not contain a definition for 'Photos' and no accessible extension method 'Photos' accepting a first argument of type 'EmployeeCreateViewModel' could be found (are you missing a using directive or an assembly reference?) EmployeeManagement 47 Active

josephregallis
Автор

3:25 I don't get it why the DeveloperExceptionPage doesn't show up in that moment ? It is certenly turned on in Startup.cs in Configure() mothod.
Hence - how do I know what is the source of the problem ?

zbigniewcwiakalski
Автор

when i click on edit button in the page...it is not showing the details of the entry.

kunalraju
Автор

When did we create modelview HomeDetailsModelView?

slobodantajisic
Автор

why we are using and creating viewmodels seperately, already we have employee class with all the properties.

sandeshshinde
Автор

Is there an order of precedence when you type asp-action="edit" then asp-controller="home"?

carlosinigo
Автор

Appreciated work❤️❤️❤️. But can you tell me how to display photo before upload on server.

Uzair_Anwar
Автор

isn't it a bad practice to use a get request for changing data?

tarikel
Автор

Why we are inheriting from CreateEmployeeViewModel instead of Employee in EditEmployeeViewModel

muzammilmalik
Автор

Can anyone please explain me why we have used Model.existingPhotoPath here and why we were using Model.Employee.PhotoPath in EmployeesDetailViewModel

lifetraveler
Автор

WHAT ARE VIEWMODELS AND WHY ARE THEY USED

amey