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

  Рет қаралды 33,907

tutorialsEU - C#

tutorialsEU - C#

Күн бұрын

Пікірлер: 31
@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 6 ай бұрын
Thanks for this - it's a very useful technique and saves passing the partial model data into the view.
@ВиталийАрдашов
@ВиталийАрдашов 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 :-)
@MariwanHS
@MariwanHS Ай бұрын
can we use it for layout page as well?
@acatij
@acatij 6 ай бұрын
Can we load a partialView with different data, example for home 6 articles and for archivo only 2?
@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.
@dinoma2095
@dinoma2095 8 ай бұрын
Hi, im working on my own project with View transitions API, has someone combined partialViews with it?, Good video by the way.
@acatij
@acatij 6 ай бұрын
Can this be used to create some common controls, like a dropdwons that are used multiple times over a proyect?
@MrTonyradford
@MrTonyradford 6 ай бұрын
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?
@EldhoLikesIt
@EldhoLikesIt 2 ай бұрын
Thanks
@woquendoG
@woquendoG 2 жыл бұрын
hi, how to remove that partial?
@siddhantpanda5455
@siddhantpanda5455 2 жыл бұрын
Is it possible to render in cstml insted of scripts tag
@damianjankov3343
@damianjankov3343 2 жыл бұрын
Very nicely explained, thank you!
@tutorialsEUC
@tutorialsEUC 2 жыл бұрын
sure thing!
@harrynewman1744
@harrynewman1744 2 жыл бұрын
Also for me this method returns error 500
@abc-hl1pw
@abc-hl1pw 2 жыл бұрын
Greeat video thanks
@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 11 ай бұрын
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 11 ай бұрын
But for scope purposes we like to place scripts of partial inside the partial.
@binodsharma112
@binodsharma112 Жыл бұрын
Nice, explain , I prefer using HTMX in partial .
@tanoryjakaperdana1419
@tanoryjakaperdana1419 6 ай бұрын
how?
@tanoryjakaperdana1419
@tanoryjakaperdana1419 Жыл бұрын
So its jquery
@gollumei
@gollumei Жыл бұрын
This is exactly why React is the best framework, so much easier than this mess.
@adrianspikes6454
@adrianspikes6454 10 ай бұрын
Dude it's just like a component lol
@bojohannesen4352
@bojohannesen4352 5 ай бұрын
Dumb thumbnail. Bad tutorial. No Bueno.
@nyx8026
@nyx8026 4 ай бұрын
Could you elaborate
@bojohannesen4352
@bojohannesen4352 4 ай бұрын
@@nyx8026 Not to you.
@nyx8026
@nyx8026 4 ай бұрын
@@bojohannesen4352 To whom then?
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 81 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 158 МЛН
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 15 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 40 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 35 МЛН
Partial views in asp net core
7:50
kudvenkat
Рет қаралды 58 М.
Implementing JWT Authentication in ASP.NET Core
23:51
Nick Chapsas
Рет қаралды 38 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 246 М.
Intro to ASP.NET Core Razor Pages - From Start to Published
1:16:44
IAmTimCorey
Рет қаралды 355 М.
C# Breakpoints and Conditions - Improve your debugging in 6 Minutes
6:32
ASP NET Core view components
10:44
kudvenkat
Рет қаралды 50 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 158 МЛН