.Net 8 Blazor: Easy Client-Side Form Validation

  Рет қаралды 3,793

Coder Foundry

Coder Foundry

Күн бұрын

Пікірлер: 36
@fyardlest1
@fyardlest1 11 ай бұрын
2024 is Blazor Year Baby!🤠 And will be a weapon in my toolbox. Let's keep coding! Thank you for showing us the simplicity Bobby.
@CoderFoundry
@CoderFoundry 11 ай бұрын
For sure. Keep at it.
@bripowered
@bripowered 11 ай бұрын
I love it. I can't wait to start working with Blazor.
@CoderFoundry
@CoderFoundry 11 ай бұрын
It's really cool
@cissemy
@cissemy 9 ай бұрын
Hi Bobby Do you have any tutorial about adding jquery to Blazor SSR ? Thanks
@TheLastEmperorXiXinPig
@TheLastEmperorXiXinPig 5 ай бұрын
is it safe to have sensitive data in the code block in blazor apps? or is info in the code {} section exposed in the client's app?
@10Totti
@10Totti 11 ай бұрын
Nice Tutorial!
@codeDotnet
@codeDotnet 10 ай бұрын
Can I get this code please? I tried to do the same as you but I could not
@CoderFoundry
@CoderFoundry 10 ай бұрын
The repo is now link in the description
@Mmuzaqi958
@Mmuzaqi958 11 ай бұрын
You are a great teacher ❤❤
@CoderFoundry
@CoderFoundry 11 ай бұрын
Thank you! 😃
@parkerwarner8688
@parkerwarner8688 11 ай бұрын
I think there is also a way to change when it validates right? Like you can make it validate with OnKeyDown or something rather than when it goes out of focus of the input. I could be wrong. Great vid tho!
@CoderFoundry
@CoderFoundry 11 ай бұрын
Out the box blazor validates on lost focus and on form submit. There are other events like onchange we could maybe hook in to. But it's not standard but I'm sure it can be built.
@azulvilla10
@azulvilla10 8 ай бұрын
Awesome! very good explained 💯😃
@CoderFoundry
@CoderFoundry 8 ай бұрын
Glad it was helpful!
@dano7291
@dano7291 10 ай бұрын
Is this achieved purely with SSR ? I cannot reproduce this behaviour without interactive mode (either server or webassembly), so just wanted to know if there is something I am missing. Thanks for the video though!
@CoderFoundry
@CoderFoundry 10 ай бұрын
Yes, this was done with wasm. For SSR, you would need to submit the form, and you would see the validations.
@ManInTheFridge
@ManInTheFridge 11 ай бұрын
Rough idea but from here just have any form classes implement IForm or something then turn that component into a generic one that can accept any type that implements IForm and build the form dynamically then you got a single component for any form in your app, validation built in and all.
@CoderFoundry
@CoderFoundry 11 ай бұрын
I'm sure you can.
@brianking8883
@brianking8883 11 ай бұрын
This is nice feature.
@CoderFoundry
@CoderFoundry 11 ай бұрын
It really is.
@MohammadKomaei
@MohammadKomaei 7 ай бұрын
How to prevent sending a request to the server when the EditForm is not valid and validation occur on browser too.
@CoderFoundry
@CoderFoundry 7 ай бұрын
There is an event on valid submit. You can submit the form only if it is valid
@MohammadKomaei
@MohammadKomaei 7 ай бұрын
@@CoderFoundry If you use OnValidSubmit the form submits and validations executes on the server you can see this on network tab of browser inspect. I want to execute validation on browser like unobtrusive javascript in mvc template.
@_miranHorvat
@_miranHorvat 11 ай бұрын
How to internationalize this validators?
@CoderFoundry
@CoderFoundry 11 ай бұрын
It's a little more involved. You would create custom attributes that would look up message values.
@JawStix
@JawStix 11 ай бұрын
Having my first interview tomorrow .. please which me good luck
@CoderFoundry
@CoderFoundry 11 ай бұрын
Good luck! You got this
@JtendraShahani
@JtendraShahani 11 ай бұрын
Is the image AI generated? If it is, then can you tell me how you did that. Awesome video.
@CoderFoundry
@CoderFoundry 11 ай бұрын
The image is generated. I used Stability ai. I'm glad you liked the video.
@JtendraShahani
@JtendraShahani 11 ай бұрын
@@CoderFoundry Sorry, but can you please share the prompt if possible. Thank you
@CoderFoundry
@CoderFoundry 11 ай бұрын
I did not keep the actual prompt. But was something like " A Woman customer service representative working at her computer. She is looking at the camera styled has a comic book art.
@codeDotnet
@codeDotnet 10 ай бұрын
Can I get this code please? I tried to do the same as you but I could not
@CoderFoundry
@CoderFoundry 10 ай бұрын
We updated the description with a link for the repo.
@codeDotnet
@codeDotnet 10 ай бұрын
@@CoderFoundry I cannot reward you for everything, but I will say thank you very much. Best regards
Blazor JavaScript Interop (Easy How To)
27:52
Coder Foundry
Рет қаралды 8 М.
.NET 8 & Blazor: Server Side Magic!
18:23
Coder Foundry
Рет қаралды 8 М.
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 17 МЛН
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 42 МЛН
Swagger is Gone in .NET 9! Replace It With This.
9:34
Nick Chapsas
Рет қаралды 84 М.
Rails 8 + AI + Tailwind  The Ultimate Design System Tutorial 2024
10:29
Rails Quest by Kaleb Lape
Рет қаралды 839
SQLModel + FastAPI: Say Goodbye to Repetitive Database Code
19:50
.NET 8 Blazor New Forms Functionality Explained
22:50
Coding with Tom
Рет қаралды 10 М.
New Bootstrap Feature - CSS Variables
14:32
Coder Foundry
Рет қаралды 10 М.
.NET 8 Blazor State Management (local and global)🌟
24:43
Netcode-Hub
Рет қаралды 5 М.
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 17 МЛН