Skip to content

Commit 8b0aaf3

Browse files
docs(validation): link MSDN Blazor server validation section
1 parent 4442dfe commit 8b0aaf3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

grid/remote-validation/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ You can read more about the general concepts of handling WebAPI errors in articl
2828

2929
* <a href="https://docs.microsoft.com/en-us/aspnet/core/web-api/handle-errors?view=aspnetcore-3.1" target="_blank">MSDN: Handle WebAPI Errors</a>
3030

31+
* <a href="https://docs.microsoft.com/en-us/aspnet/core/blazor/forms-validation?view=aspnetcore-3.1#server-validation" target="_blank">MSDN: Blazor Server Validation</a>
32+
3133
* <a href="https://www.devtrends.co.uk/blog/handling-errors-in-asp.net-core-web-api" target="_blank">Handling Errors in ASP.NET Core WebAPI by devtrends.co.uk</a>
3234

3335
Of course, a similar approach can be used in a server-side Blazor app, as well as with or without WebAPI - the core concept is bubbling exceptions. There can also be many other ways to handle such errors, and this example is by no means exhaustive or definitive, its purpose is to show one way to feed the grid with real data and to prevent data updates when errors occur.

listview/ValidationExamples/readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ In this sample project, you will find the following examples:
1414
* [async methods](ValidationExamples/Pages/AsyncMethods.razor) - one way to use the edit form (or other remote validation) when the methods are `async`.
1515

1616
* [custom edit form](ValidationExamples/Pages/CustomForm.razor) - an example of implementing all the editing/inserting logic with your own code without having to take into account any built-in ListView logic and capabilities - this provides you with full control over the rendering, logic, async operations and so on.
17+
18+
You may also find useful articles like the following ones on handling server-side validation:
19+
20+
* <a href="https://docs.microsoft.com/en-us/aspnet/core/web-api/handle-errors?view=aspnetcore-3.1" target="_blank">MSDN: Handle WebAPI Errors</a>
21+
22+
* <a href="https://docs.microsoft.com/en-us/aspnet/core/blazor/forms-validation?view=aspnetcore-3.1#server-validation" target="_blank">MSDN: Blazor Server Validation</a>
23+
24+
* <a href="https://www.devtrends.co.uk/blog/handling-errors-in-asp.net-core-web-api" target="_blank">Handling Errors in ASP.NET Core WebAPI by devtrends.co.uk</a>

0 commit comments

Comments
 (0)