Skip to content

Light Freshness Edit: ASP.NET - mvc#37085

Open
lootle1 wants to merge 1 commit intodotnet:mainfrom
lootle1:FR50
Open

Light Freshness Edit: ASP.NET - mvc#37085
lootle1 wants to merge 1 commit intodotnet:mainfrom
lootle1:FR50

Conversation

@lootle1
Copy link
Copy Markdown
Contributor

@lootle1 lootle1 commented Apr 30, 2026

This PR contains freshness updates to the following articles:

  • Overview of ASP.NET Core MVC
    [Answered by Wade in other now closed PR here pushed to this PR] Row 119, the link https://jqueryvalidation.org/ goes to a page with an invalid SSL and host error. Perhaps they're in the process of updating but curious if you want to remove, replace, or leave as is? I did search for a replacement in case we want to replace but didn't locate anything.
  • Layout in ASP.NET Core
  • Views in ASP.NET Core MVC
  • Razor syntax reference for ASP.NET Core
  • Partial views in ASP.NET Core

Minor grammar/style updates. Link updates.
For request details, see 568764


Internal previews

📄 File 🔗 Preview link
aspnetcore/mvc/overview.md Overview of ASP.NET Core MVC
aspnetcore/mvc/views/layout.md Layout in ASP.NET Core
aspnetcore/mvc/views/overview.md Views in ASP.NET Core MVC
aspnetcore/mvc/views/partial.md Partial views in ASP.NET Core
aspnetcore/mvc/views/razor.md aspnetcore/mvc/views/razor

@lootle1 lootle1 marked this pull request as ready for review April 30, 2026 21:24
@lootle1
Copy link
Copy Markdown
Contributor Author

lootle1 commented Apr 30, 2026

@tdykstra @wadepickett this PR is ready for review. Top comment has an overview. Note I ran into an issue on the previous PR (also in top comment) so pushed all those changes here along with the new ones.

Let me know if any additional change requests, thank you!

## More view features

[Tag Helpers](xref:mvc/views/tag-helpers/intro) make it easy to add server-side behavior to existing HTML tags. Using Tag Helpers avoids the need to write custom code or helpers within your views. Tag helpers are applied as attributes to HTML elements and are ignored by editors that can't process them. This allows you to edit and render view markup in a variety of tools.
[Tag Helpers](xref:mvc/views/tag-helpers/intro) make it easy to add server-side behavior to existing HTML tags. Using Tag Helpers avoids the need to write custom code or helpers within your views. Tag helpers are applied as attributes to HTML elements and editors that can't process them ignore them. This allows you to edit and render view markup in a variety of tools.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[Tag Helpers](xref:mvc/views/tag-helpers/intro) make it easy to add server-side behavior to existing HTML tags. Using Tag Helpers avoids the need to write custom code or helpers within your views. Tag helpers are applied as attributes to HTML elements and editors that can't process them ignore them. This allows you to edit and render view markup in a variety of tools.
[Tag Helpers](xref:mvc/views/tag-helpers/intro) make it easy to add server-side behavior to existing HTML tags. Using Tag Helpers avoids the need to write custom code or helpers within your views. Tag helpers are applied as attributes to HTML elements and are ignored by editors that can't process them. This allows you to edit and render view markup in a variety of tools.

Minor item: "them ignore them" seemed a bit awkward. See if you think this is better.

[!code-cshtml[](../../common/samples/WebApplication1/Views/Home/About.cshtml)]

[Razor markup](xref:mvc/views/razor) starts with the `@` symbol. Run C# statements by placing C# code within [Razor code blocks](xref:mvc/views/razor#razor-code-blocks) set off by curly braces (`{ ... }`). For example, see the assignment of "About" to `ViewData["Title"]` shown above. You can display values within HTML by simply referencing the value with the `@` symbol. See the contents of the `<h2>` and `<h3>` elements above.
[Razor markup](xref:mvc/views/razor) starts with the `@` symbol. Run C# statements by placing C# code within [Razor code blocks](xref:mvc/views/razor#razor-code-blocks) set off by curly braces (`{ ... }`). For example, see the assignment of "About" to `ViewData["Title"]` shown previously. You can display values within HTML by simply referencing the value with the `@` symbol. See the contents of the `<h2>` and `<h3>` elements previous.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[Razor markup](xref:mvc/views/razor) starts with the `@` symbol. Run C# statements by placing C# code within [Razor code blocks](xref:mvc/views/razor#razor-code-blocks) set off by curly braces (`{ ... }`). For example, see the assignment of "About" to `ViewData["Title"]` shown previously. You can display values within HTML by simply referencing the value with the `@` symbol. See the contents of the `<h2>` and `<h3>` elements previous.
[Razor markup](xref:mvc/views/razor) starts with the `@` symbol. Run C# statements by placing C# code within [Razor code blocks](xref:mvc/views/razor#razor-code-blocks) set off by curly braces (`{ ... }`). For example, see the assignment of "About" to `ViewData["Title"]` shown previously. You can display values within HTML by simply referencing the value with the `@` symbol. See the contents of the `<h2>` and `<h3>` elements previously.

Minor item: "previous" to "previously".

> Controllers shouldn't be overly complicated by too many responsibilities. To keep controller logic from becoming overly complex, push business logic out of the controller and into the domain model.

>
>[!TIP]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
>[!TIP]
> [!TIP]

Minor: space was missing.


* The "int" element wasn't closed. All elements must be either self-closing or have a matching end tag.
* Cannot convert method group 'GenericMethod' to non-delegate type 'object'. Did you intend to invoke the method?`
* Can't convert method group 'GenericMethod' to non-delegate type 'object'. Did you intend to invoke the method?`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Can't convert method group 'GenericMethod' to non-delegate type 'object'. Did you intend to invoke the method?`
* Cannot convert method group 'GenericMethod' to non-delegate type 'object'. Did you intend to invoke the method?`

Compiler error messages are verbatim output from the C# compiler and should not be altered for style.

Copy link
Copy Markdown
Contributor

@wadepickett wadepickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I found a few small item and one medium one to fix before we merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants