Our applications capture data with forms and we would like to ensure proper data values and required data values are submitted. Data Annotations on classes in .NET applications work well, so how do we use those same technologies on our Blazor hosted forms? In this video, we will learn to use the ValidationSummary, ValidationMessage, and DataAnnotationsValidator to ensure our Data Annotation attributes are enforced.
Learn more about Blazor at:
https://aka.ms/BeginnerBlazor
Recommended Microsoft Learn Modules: https://aka.ms/Blazor/RecommendedLearnModules
Downloads:
Download .NET: https://get.dot.net?WT.mc_id=academic-33200-cxa
Download Visual Studio: https://aka.ms/Blazor/GetVisualStudio
Blazing Pizza Source Code: https://github.com/dotnet-presentations/blazor-workshop
Blazor Validation Documentation: https://docs.microsoft.com/aspnet/core/blazor/forms-validation?basic-validation-1
πββοΈπββοΈ Get your questions answered on the Microsoft Q&A for .NET: https://aka.ms/dotnet-qa
π« Learn C#, F#, and .NET with free self-guided learning from Microsoft Learn: https://aka.ms/learndotnet
#Blazor #Validation