Тёмный

THIS is how you use Partial Views in ASP.NET Core 6 

tutorialsEU - C#
Подписаться 23 тыс.
Просмотров 33 тыс.
50% 1

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@tutorialsEUC
@tutorialsEUC 2 года назад
🚀C# Progress Academy - Become a senior C# developer: academy.tutorials.eu/p/csharp-progress-academy
@andread4721
@andread4721 2 года назад
Two questions: When will it start? Will you fill my mailbox with tons of spam?
@MrTonyradford
@MrTonyradford 4 месяца назад
Thanks for this - it's a very useful technique and saves passing the partial model data into the view.
@user-zb2pf9ow1j
@user-zb2pf9ow1j 2 года назад
Let me ask you a question. Why didn't you use @await Html.Partial Async("_BlogArticles", blogentries)
@tutorialsEUC
@tutorialsEUC 2 года назад
Hi, thanks for adding that nice helper function. Your way definately works too but from my side of experience in MVC most stuff (especially when it comes to datatable etc.) gets rendered (even partial views) by using the jquery approach to manage when stuff is loaded. My approach allows you to run code after the partial view has loaded (and you will do that alot!). Greets, Jannick :-)
@dyaaCoding
@dyaaCoding Год назад
can this be done in Razor pages . I have a model i created a scaffold from. I now have a folder in my Pages called Categories and it has Create, Index ,delete, details cshtml and cshtml.cs. i want my main Pages/Index.cshtml to render the Pages/Categories/Index.Cshtml in my main Index. While maintaining the ability to press the create button and actually add a new iterm.
@EldhoLikesIt
@EldhoLikesIt 22 дня назад
Thanks
@acatij
@acatij 4 месяца назад
Can we load a partialView with different data, example for home 6 articles and for archivo only 2?
@abc-hl1pw
@abc-hl1pw 2 года назад
Greeat video thanks
@dinoma2095
@dinoma2095 6 месяцев назад
Hi, im working on my own project with View transitions API, has someone combined partialViews with it?, Good video by the way.
@tanoryjakaperdana1419
@tanoryjakaperdana1419 11 месяцев назад
So its jquery
@acatij
@acatij 4 месяца назад
Can this be used to create some common controls, like a dropdwons that are used multiple times over a proyect?
@MrTonyradford
@MrTonyradford 4 месяца назад
I think this approach could be used for any control in a partial, if you pass the data formatted correctly into the partial.
@hannahbandana88
@hannahbandana88 Год назад
I cant find the link too the asp net 5 day challenge?
@harrynewman1744
@harrynewman1744 2 года назад
Also for me this method returns error 500
@binodsharma112
@binodsharma112 11 месяцев назад
Nice, explain , I prefer using HTMX in partial .
@tanoryjakaperdana1419
@tanoryjakaperdana1419 4 месяца назад
how?
@woquendoG
@woquendoG 2 года назад
hi, how to remove that partial?
@damianjankov3343
@damianjankov3343 2 года назад
Very nicely explained, thank you!
@tutorialsEUC
@tutorialsEUC 2 года назад
sure thing!
@siddhantpanda5455
@siddhantpanda5455 2 года назад
Is it possible to render in cstml insted of scripts tag
@stijntempelaere8772
@stijntempelaere8772 2 года назад
I was just wondering if you need to repeat the script part in every page you want to render the partial view? Is it possible to create a class instead and place it in the js file?
@FromRootsToRadicals_INTP
@FromRootsToRadicals_INTP 9 месяцев назад
It depends on your setup. Normally you want to consolidate scripts to the view they are needed. If you placed it outside then it would always be rendered without the partial. If you have multiple partials on one view that are all the same then obviously dont do that. You could then place in a render tag at the parent view when needed.
@FromRootsToRadicals_INTP
@FromRootsToRadicals_INTP 9 месяцев назад
But for scope purposes we like to place scripts of partial inside the partial.
@gollumei
@gollumei Год назад
This is exactly why React is the best framework, so much easier than this mess.
@adrianspikes6454
@adrianspikes6454 8 месяцев назад
Dude it's just like a component lol
@bojohannesen4352
@bojohannesen4352 3 месяца назад
Dumb thumbnail. Bad tutorial. No Bueno.
@nyx8026
@nyx8026 2 месяца назад
Could you elaborate
@bojohannesen4352
@bojohannesen4352 2 месяца назад
@@nyx8026 Not to you.
@nyx8026
@nyx8026 2 месяца назад
@@bojohannesen4352 To whom then?
Далее
БЕЛКА РОЖАЕТ?#cat
00:28
Просмотров 132 тыс.
iPhone 16 - презентация Apple 2024
01:00
Просмотров 129 тыс.
Дежавю, прескевю и жамевю!
00:59
Cursor Is Beating VS Code (...by forking it)
18:00
Просмотров 63 тыс.
Partial views in asp net core
7:50
Просмотров 58 тыс.
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
Просмотров 1,5 млн
Dependency Injection in .NET Core (.NET 6)
1:00:32
Просмотров 189 тыс.
C# Yield - Creating Iterators for beginners
5:52
Просмотров 10 тыс.
Master C# Interfaces in 12 Minutes - Beginner Tutorial
11:37
БЕЛКА РОЖАЕТ?#cat
00:28
Просмотров 132 тыс.