Skip to content

Commit e5b795b

Browse files
Merge pull request #34820 from dotnet/main
Merge to Live
2 parents 6afb852 + 0f30e6c commit e5b795b

File tree

8 files changed

+30
-15
lines changed

8 files changed

+30
-15
lines changed

aspnetcore/blazor/components/quickgrid.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,18 +202,18 @@ Apply a stylesheet class to a row of the grid based on the row item using the `R
202202
In the following example:
203203

204204
* A row item is represented by the `Person` [record](/dotnet/csharp/language-reference/builtin-types/record). The `Person` record includes a `FirstName` property.
205-
* The `HighlightJulie` method applies the `highlight` class styles to any row where the person's first name is "`Julie`."
205+
* The `GetRowCssClass` method applies the `highlight-row` class styles to any row where the person's first name is "`Julie`."
206206

207207
```razor
208-
<QuickGrid ... RowClass="HighlightJulie">
208+
<QuickGrid ... RowClass="GetRowCssClass">
209209
...
210210
</QuickGrid>
211211
212212
@code {
213213
private record Person(int PersonId, string FirstName, string LastName);
214214
215-
private string HighlightJulie(Person person) =>
216-
person.FirstName == "Julie" ? "highlight" : null;
215+
private string GetRowCssClass(Person person) =>
216+
person.FirstName == "Julie" ? "highlight-row" : null;
217217
}
218218
```
219219

aspnetcore/blazor/components/render-components-outside-of-aspnetcore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ uid: blazor/components/render-outside-of-aspnetcore
1212

1313
[!INCLUDE[](~/includes/not-latest-version-without-not-supported-content.md)]
1414

15-
Razor components can be rendered outside of the context of an HTTP request. You can render Razor components as HTML directly to a string or stream independently of the ASP.NET Core hosting environment. This is convenient for scenarios where you want to generate HTML fragments, such as for generating email content, generating static site content, or for building a content templating engine.
15+
[Razor components](xref:blazor/components/index), which are self-contained portions of user interface (UI) with processing logic used in [ASP.NET Core Blazor](xref:blazor/index), can be rendered outside of the context of an HTTP request. You can render Razor components as HTML directly to a string or stream independently of the ASP.NET Core hosting environment. This is convenient for scenarios where you want to generate HTML fragments, such as for generating email content, generating static site content, or for building a content templating engine.
1616

1717
In the following example, a Razor component is rendered to an HTML string from a console app:
1818

aspnetcore/blazor/forms/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ In the preceding `StarshipPlainForm` component:
7878
7979
Blazor enhances page navigation and form handling by intercepting the request in order to apply the response to the existing DOM, preserving as much of the rendered form as possible. The enhancement avoids the need to fully load the page and provides a much smoother user experience, similar to a single-page app (SPA), although the component is rendered on the server. For more information, see <xref:blazor/fundamentals/routing#enhanced-navigation-and-form-handling>.
8080

81-
[Streaming rendering](xref:blazor/components/rendering#streaming-rendering) is supported for plain HTML forms.
81+
<!-- UPDATE 11.0 - Check the PU issue (backlogged as of 2/27/25 -->
82+
83+
[Streaming rendering](xref:blazor/components/rendering#streaming-rendering) is supported for plain HTML forms. Note that when `POST`ing a form, only DOM updates inside the form's handlers are streamed (for example, `@onsubmit`). Updates inside `OnInitializedAsync` are only streamed for `GET` requests. For more information, see [Allow streaming the loading phase of POST responses (`dotnet/aspnetcore` #50994)](https://github.com/dotnet/aspnetcore/issues/50994).
8284

8385
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
8486

@@ -124,7 +126,9 @@ In the preceding `Starship1` component:
124126
125127
Blazor enhances page navigation and form handling for <xref:Microsoft.AspNetCore.Components.Forms.EditForm> components. For more information, see <xref:blazor/fundamentals/routing#enhanced-navigation-and-form-handling>.
126128

127-
[Streaming rendering](xref:blazor/components/rendering#streaming-rendering) is supported for <xref:Microsoft.AspNetCore.Components.Forms.EditForm>.
129+
<!-- UPDATE 11.0 - Check the PU issue (backlogged as of 2/27/25 -->
130+
131+
[Streaming rendering](xref:blazor/components/rendering#streaming-rendering) is supported for <xref:Microsoft.AspNetCore.Components.Forms.EditForm>. Note that when `POST`ing a form, only DOM updates inside the form's handlers are streamed (for example, `OnValidSubmit`). Updates inside `OnInitializedAsync` are only streamed for `GET` requests. For more information, see [Allow streaming the loading phase of POST responses (`dotnet/aspnetcore` #50994)](https://github.com/dotnet/aspnetcore/issues/50994).
128132

129133
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
130134

aspnetcore/fundamentals/configuration/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ Using the [default](#default) configuration, the `appsettings.json` and `appsett
138138

139139
Comments in `appsettings.json` and `appsettings.{Environment}.json` files are supported using JavaScript or [C# style comments](/dotnet/csharp/language-reference/tokens/comments).
140140

141+
Some integrated development environments (IDE) display errors when editing a JSON file that contains comments. You can generally ignore comment errors and warnings, but you can also usually disable them with a setting in the IDE. In Visual Studio Code, for example, add the following to the `settings.json` file to disable the errors:
142+
143+
```json
144+
"files.associations": {
145+
"appsettings*.json": "jsonc"
146+
}
147+
```
148+
149+
For other IDEs, check the tool's documentation and other product support channels to determine how to silence the errors.
150+
141151
<a name="optpat"></a>
142152

143153
### Bind hierarchical configuration data using the options pattern

aspnetcore/release-notes/aspnetcore-10/includes/blazor.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
### QuickGrid `RowClass` parameter
22

3-
Apply a stylesheet class to a row of the grid based on the row item using the new `RowClass` parameter. In the following example, the `ApplyRowStyle` method is called on each row to conditionally apply a stylesheet class based on the row item:
3+
Apply a stylesheet class to a row of the grid based on the row item using the new `RowClass` parameter. In the following example, the `GetRowCssClass` method is called on each row to conditionally apply a stylesheet class based on the row item:
44

55
```razor
6-
<QuickGrid ... RowClass="ApplyRowStyle">
6+
<QuickGrid ... RowClass="GetRowCssClass">
77
...
88
</QuickGrid>
99
1010
@code {
11-
private string ApplyRowStyle({TYPE} rowItem) =>
12-
rowItem.{PROPERTY} == {VALUE} ? "{CSS STYLE CLASS}" : null;
11+
private string GetRowCssClass(MyGridItem item) =>
12+
item.IsArchived ? "row-archived" : null;
1313
}
1414
```
1515

aspnetcore/security/authentication/mfa.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ MFA using TOTP is supported by default when using ASP.NET Core Identity. This ap
4545

4646
For implementation details, see [Enable QR Code generation for TOTP authenticator apps in ASP.NET Core](xref:security/authentication/identity-enable-qrcodes).
4747

48-
To disable support for MFA TOTP, configure authentication using <xref:Microsoft.Extensions.DependencyInjection.IdentityServiceCollectionExtensions.AddIdentity%2A> instead of <xref:Microsoft.Extensions.DependencyInjection.IdentityServiceCollectionUIExtensions.AddDefaultIdentity%2A>. `AddDefaultIdentity` calls <xref:Microsoft.AspNetCore.Identity.IdentityBuilderExtensions.AddDefaultTokenProviders%2A> internally, which registers multiple token providers including one for MFA TOTP. To register only specific token providers, call <xref:Microsoft.AspNetCore.Identity.IdentityBuilder.AddTokenProvider%2A> for each required provider. For more information about available token providers, see the [AddDefaultTokenProviders source on GitHub](https://github.com/dotnet/aspnetcore/blob/release/6.0/src/Identity/Core/src/IdentityBuilderExtensions.cs#L21-L32).
48+
To disable support for MFA TOTP, configure authentication using <xref:Microsoft.Extensions.DependencyInjection.IdentityServiceCollectionExtensions.AddIdentity%2A> instead of <xref:Microsoft.Extensions.DependencyInjection.IdentityServiceCollectionUIExtensions.AddDefaultIdentity%2A>. `AddDefaultIdentity` calls <xref:Microsoft.AspNetCore.Identity.IdentityBuilderExtensions.AddDefaultTokenProviders%2A> internally, which registers multiple token providers including one for MFA TOTP. To register only specific token providers, call <xref:Microsoft.AspNetCore.Identity.IdentityBuilder.AddTokenProvider%2A> for each required provider. For more information on available token providers, see the [`AddDefaultTokenProviders` reference source (`dotnet/aspnetcore` GitHub repository)](https://github.com/dotnet/aspnetcore/blob/main/src/Identity/Core/src/IdentityBuilderExtensions.cs).
49+
50+
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
4951

5052
### MFA passkeys/FIDO2 or passwordless
5153

aspnetcore/security/authentication/social/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ Enabling users to sign in with their existing credentials:
4848
* The `dotnet new` command creates a new Razor Pages project in the *WebApp1* folder.
4949
* `-au Individual` creates the code for Individual authentication.
5050
* `-uld` uses LocalDB, a lightweight version of SQL Server Express for Windows. Omit `-uld` to use SQLite.
51-
* The `code` command opens the *WebApp1* folder in a new instance of Visual Studio Code.
5251

5352
---
5453

aspnetcore/security/cors/includes/cors56.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ Sec-Fetch-Site: cross-site
469469
User-Agent: Mozilla/5.0 ...
470470
```
471471

472-
In `OPTIONS` requests, the server sets the **Response headers** `Access-Control-Allow-Origin: {allowed origin}` header in the response. For example, the deployed [sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/3.1sample/Cors/WebAPI), [Delete [EnableCors]](https://cors1.azurewebsites.net/test?number=2) button `OPTIONS` request contains the following headers:
472+
In `OPTIONS` requests, the server sets the **Response headers** `Access-Control-Allow-Origin: {allowed origin}` header in the response. For example, the deployed [sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/3.1sample/Cors/WebAPI), Delete button `OPTIONS` request contains the following headers:
473473

474474
**General headers**
475475

@@ -1081,7 +1081,7 @@ Sec-Fetch-Site: cross-site
10811081
User-Agent: Mozilla/5.0 ...
10821082
```
10831083

1084-
In `OPTIONS` requests, the server sets the **Response headers** `Access-Control-Allow-Origin: {allowed origin}` header in the response. For example, the deployed [sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/3.1sample/Cors/WebAPI), [Delete [EnableCors]](https://cors1.azurewebsites.net/test?number=2) button `OPTIONS` request contains the following headers:
1084+
In `OPTIONS` requests, the server sets the **Response headers** `Access-Control-Allow-Origin: {allowed origin}` header in the response. For example, the deployed [sample](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/cors/3.1sample/Cors/WebAPI), Delete button `OPTIONS` request contains the following headers:
10851085

10861086
**General headers**
10871087

0 commit comments

Comments
 (0)