Skip to content

Commit 950a11c

Browse files
authored
Merge pull request #33893 from dotnet/main
2 parents f194417 + 431f4a5 commit 950a11c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

aspnetcore/blazor/call-web-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ If you're calling an external web API (not in the same URL space as the client a
520520

521521
```csharp
522522
builder.Services.AddHttpClient("WebAPI", client =>
523-
client.BaseAddress = new Uri(https://localhost:5001));
523+
client.BaseAddress = new Uri("https://localhost:5001"));
524524
```
525525

526526
In the following component code:
@@ -618,7 +618,7 @@ If you're calling an external web API (not in the same URL space as the client a
618618

619619
```csharp
620620
builder.Services.AddHttpClient<ForecastHttpClient>(client =>
621-
client.BaseAddress = new Uri(https://localhost:5001));
621+
client.BaseAddress = new Uri("https://localhost:5001"));
622622
```
623623

624624
Components inject the typed <xref:System.Net.Http.HttpClient> to call the web API.

aspnetcore/blazor/forms/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,18 @@ In Blazor Web Apps, client-side validation requires an active Blazor SignalR cir
436436

437437
All of the [data annotation built-in validators](xref:mvc/models/validation#built-in-attributes) are supported in Blazor except for the [`[Remote]` validation attribute](xref:mvc/models/validation#remote-attribute).
438438

439+
jQuery validation isn't supported in Razor components. We recommend any of the following approaches:
440+
441+
* Follow the guidance in <xref:blazor/forms/validation> for either:
442+
* Server-side validation in a Blazor Web App that adopts an interactive render mode.
443+
* Client-side validation in a standalone Blazor Web Assembly app.
444+
* Use native HTML validation attributes (see [Client-side form validation (MDN documentation)](https://developer.mozilla.org/docs/Learn/Forms/Form_validation)).
445+
* Adopt a third-party validation JavaScript library.
446+
447+
<!-- UPDATE 10.0 - Remove if the feature is realized. -->
448+
449+
For statically-rendered forms on the server, a new mechanism for client-side validation is under consideration for .NET 10 in late 2025. For more information, see [Create server rendered forms with client validation using Blazor without a circuit (`dotnet/aspnetcore` #51040)](https://github.com/dotnet/aspnetcore/issues/51040).
450+
439451
## Additional resources
440452

441453
:::moniker range=">= aspnetcore-8.0"

0 commit comments

Comments
 (0)