Тёмный

Introducing Blazor: Razor Components | ASP.NET Core 101 [10 of 13] 

dotnet
Подписаться 303 тыс.
Просмотров 89 тыс.
50% 1

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

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 49   
@37point8
@37point8 3 года назад
Appreciate the video series guys! It's extremely tough for a beginner like me but I am enjoying the challenge.
@redstrike91dn
@redstrike91dn 4 года назад
I will research about Blazor Component after this video. It has been 3 years since my first heard of it. I hope Blazor could be useful in any kind of project size.
@bphatness3924
@bphatness3924 5 лет назад
Blazor is here to save us from our oppressive javascript overlords
@detaaditya6237
@detaaditya6237 4 года назад
Finally it's time to say goodbye to the npm_module hell
@0x400Bogdan
@0x400Bogdan 4 года назад
Why Intellisense can't help correcting namespaces in .cshtml and .razor files?
@Channel1234abc
@Channel1234abc 4 года назад
is there a way to get those stickers? xD. Love your videos guys! Thanks so much for crating them for us
@spag1209
@spag1209 Год назад
If you get an issue with @using Components, rename the Components folder to something else.
@suziiki98
@suziiki98 10 месяцев назад
CSS got thrown off. Looks like a vertical list now
@adelajami8731
@adelajami8731 Год назад
QQ: can the framework come with all essetional services added? instead of adding them one by one?
@hweeli6228
@hweeli6228 3 года назад
I am very new to asp.net. I just met a issue that one I run the IIS Express button, the page render out with correct layout that all images have their own new button, but soon it is flashed out and just left one pic without a button on the page, it looks like some data rendering failed at the end. who meets this else and how to fix this? thanks
@pawanshrestha1873
@pawanshrestha1873 3 года назад
Hi there were u able to resolve this?
@mohammadrahman9698
@mohammadrahman9698 3 года назад
So confusing asp net..too many internal connections among files and components
@alimahdi6379
@alimahdi6379 3 года назад
Finally, someone who tells it like it is. I am tired of ppl sucking up to MS. This stuff is painful to learn.
@Fozzix66
@Fozzix66 3 года назад
I have this issue: The HTML produced by the rendered TComponent. CS4001: cannot await 'method group'
@Andrei-f6t9c
@Andrei-f6t9c 5 лет назад
for some reason in my "Blazor" page, 'code' does not exist in the current context so nothing below @code can fix that. Is it a bug or did I miss something? same thing happens if I copy paste the code from the github, my VS version is the latest at the moment '16.3.1'. same thing happens if I create a new Razor Components item, @code will immediately not exist. edit: what the hell, it just fixed itself after I deleted the newly created Razor Components item. This is most likely a "caching" bug.
@JaimeWyant
@JaimeWyant 5 лет назад
Exact same thing happened to me. Created the blazor page, got errors. Deleted the blazor page, then recreate and the problem "fixed itself."
@amdreallyfast
@amdreallyfast 4 года назад
Was it a compile error or just an intellisense error? Intellisense operates by compiling behind the scenes, and on my machine compilation of a razar page takes a little bit, so it takes some time for intellisense to catch up.
@Zanzikhan
@Zanzikhan 4 года назад
Omg, I forgot to learn html
@Osaca1997
@Osaca1997 5 лет назад
My application failed loading the resource "blazor.server.js", where is it?? where can I download it?
@mh-studio1
@mh-studio1 3 года назад
why not:
@HalloWorld123
@HalloWorld123 2 года назад
for anyone having trouble with "@using ContosoCrafts.WebSite.Components". You can simply replace it with "@using Components"
@masoniclizard6634
@masoniclizard6634 4 года назад
contosoCrafts.Website.Services doesnt work for me. It says that doesn't exist. Can someone help me?
@martingay3064
@martingay3064 3 года назад
Given the lack of replies to any of the comments and issues I see below I am not sure if it is worth asking but here goes... Despite @using .Components even being generated and placed correctly by resharper when resolving ProductList, I am getting a compiler error saying that the namespace does not exist. Also, the _framework/blazer.server.js seems to also be unresolved. Is there a package I am meant to install ? using .Net 5.0 so not sure if these issues are related to the version I am using but would have assumed compatible... Also - I find this stuff difficult to learn because it is difficult to know what to actually do. its almost like the people who developed this framework are the only people who know how it works and how to use it...hence the reason why I still have not created a website. It is I suppose meant to be easier but I dont think they have in any way made it intuitive - maybe a better introductory tutorial would be one introducing the architecture of these apps and how they work under the hood so it is clear as to what gets added, how it is added, why it is added, when etc.
@wikotk
@wikotk 2 года назад
Same issue occurs, and it fixed, once I delete the razor component and recreate.
@martingay3064
@martingay3064 2 года назад
@@wikotk Thanks Wikum - appreciate your help
@ryanguelzo5921
@ryanguelzo5921 4 года назад
It won't recognize my components folder under WebSite. I see Controllers, Models, Service and Pages. I even checked to make sure that Components was in the same scope as the others. Can someone please help me?
@Zer0_Ph34r
@Zer0_Ph34r 4 года назад
If you're still looking into this, the issue is that it doesn't get filed under WebSite automatically. If you just put in "@using Components;" it should find the namespace
@marcikadraga
@marcikadraga 4 года назад
@@Zer0_Ph34r it doesnt ,but thx.
@yolopassion
@yolopassion 2 года назад
@@Zer0_Ph34r It worked for me
@sc12sc
@sc12sc 4 года назад
They could pass the products in the component via a parameter attribute without using a service
@Andrei-f6t9c
@Andrei-f6t9c 5 лет назад
In this this doesn't outright work, the solution is to copy and paste the original .json code over the one in the file. From last video, that "rate" command modifies something about the json that makes it unaccessible later.
@Sonizsoniz
@Sonizsoniz 5 лет назад
For me it worked to delete the rating numbers that got added to the product.json and reset to "null".
@amdreallyfast
@amdreallyfast 4 года назад
In case you haven't fixed this yet, I added a comment on the previous video (9 of 13), explaining how the File.OpenWrite(...) command doesn't open the file for create, but instead just starts writing from the beginning, which could leave you with a bad json. I also tried to explain how to fix it.
@Voidsway
@Voidsway 4 года назад
Just like @John Cox said, the issue is File.OpenWrite(). I'll leave the function here. Goes under JsonFileProductsService in add ratings private void SerializeFile(IEnumerable products) { using FileStream outPutStream = File.Open(JsonFileName, FileMode.Create, FileAccess.Write); JsonSerializer.Serialize ( new Utf8JsonWriter(outPutStream, new JsonWriterOptions { SkipValidation = true, Indented = true }), products ); }
@ehtrain8983
@ehtrain8983 3 года назад
very good
@noormustafa1519
@noormustafa1519 Год назад
I am quite disappointed with this course from Microsoft. You are not giving any explanation for what you are doing and why you are doing it? How someone can do this on their own unless they understand it clearly.
@cbrown940
@cbrown940 3 года назад
🤯
@darktjeAI
@darktjeAI 4 года назад
There is not .WebSite.Service for me ? someone help please
@spencerlikes2run
@spencerlikes2run 4 года назад
For some reason I had two `ContosoCrafts.Website` options. I had to use the second one in order to access Services. Not sure why.
@MikeSchlueter
@MikeSchlueter 4 года назад
I am seeing something similar, that I have a mix of .WebSite and .Website, with a case difference on the 'S'. I tried replacing all instances of .Website with the uppercase version .WebSite, but now it doesn't build. Error CS0234 The type or namespace name 'Components' does not exist in the namespace 'ContosoCrafts.WebSite' (are you missing an assembly reference?)
@darktjeAI
@darktjeAI 4 года назад
@@MikeSchlueter Sir I think your asp.net version is to low. are you using 3.0
@MikeSchlueter
@MikeSchlueter 4 года назад
​@@darktjeAI I am using VS 2019 with ASP.NET Core 3.1. I got it working by changing all .WebSite instances to .Website.
@darktjeAI
@darktjeAI 4 года назад
@@MikeSchlueter Okay haha good to hear! :)
@AshutoshKumar-kt1dd
@AshutoshKumar-kt1dd 4 года назад
Great
@ironbull45
@ironbull45 4 года назад
The button event doesn't fire.
@chillbro2275
@chillbro2275 4 года назад
hahaha Stick it on the Error page
Далее
Serilog 🚀 Logging in .NET 7 Made Simple & Fun
16:23
PUBG Mobile СТАЛ ПЛАТНЫМ! 😳
00:31
Просмотров 108 тыс.
Part 5. Roblox trend☠️
00:13
Просмотров 2,7 млн
Brutally honest advice for new .NET Web Developers
7:19
Data in a Razor Page | ASP.NET Core 101 [5 of 13]
11:47
Styling a Razor Page | ASP.NET Core 101 [6 of 13]
10:19