Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions aspnetcore/blazor/call-web-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ If you're calling an external web API (not in the same URL space as the client a

```csharp
builder.Services.AddHttpClient("WebAPI", client =>
client.BaseAddress = new Uri(https://localhost:5001));
client.BaseAddress = new Uri("https://localhost:5001"));
```

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

```csharp
builder.Services.AddHttpClient<ForecastHttpClient>(client =>
client.BaseAddress = new Uri(https://localhost:5001));
client.BaseAddress = new Uri("https://localhost:5001"));
```

Components inject the typed <xref:System.Net.Http.HttpClient> to call the web API.
Expand Down
12 changes: 12 additions & 0 deletions aspnetcore/blazor/forms/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,18 @@ In Blazor Web Apps, client-side validation requires an active Blazor SignalR cir

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).

jQuery validation isn't supported in Razor components. We recommend any of the following approaches:

* Follow the guidance in <xref:blazor/forms/validation> for either:
* Server-side validation in a Blazor Web App that adopts an interactive render mode.
* Client-side validation in a standalone Blazor Web Assembly app.
* Use native HTML validation attributes (see [Client-side form validation (MDN documentation)](https://developer.mozilla.org/docs/Learn/Forms/Form_validation)).
* Adopt a third-party validation JavaScript library.

<!-- UPDATE 10.0 - Remove if the feature is realized. -->

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).

## Additional resources

:::moniker range=">= aspnetcore-8.0"
Expand Down
Loading