liveBook · Manning

TagHelperOutput

TagHelperOutput is an ASP.NET Core object representing the element, attributes, and content produced by a Tag Helper.

How 2 Manning books explain it

ASP.NET Core in Action, 3e

TagHelperOutput is the ASP.NET Core object representing the generated element, attributes, and content produced by a Tag Helper.

How it is used
Controls the HTML element, attributes, content, and visibility produced by a custom Tag Helper.
How deep it goes
Explains rendering properties, content methods, suppression, child-content retrieval, and execution ordering without descending into framework internals.
Examples
Uses SystemInfoTagHelper for generated content and IfTagHelper for removing an element when an if attribute is false.
What you can do after
Build custom Tag Helpers that generate, transform, encode, or suppress Razor HTML output.

Read how ASP.NET Core in Action, 3e explains TagHelperOutput →

Pro ASP.NET Core 7, Tenth Edition

TagHelperOutput is an ASP.NET Core object that represents and exposes the element and content produced during tag-helper processing.

How it is used
Transforms Razor elements during tag-helper processing by controlling rendered tags, attributes, content, and surrounding markup.
How deep it goes
Explains the main properties and demonstrates attribute, wrapper, and content transformations, without descending into rendering internals.
Examples
Uses Bootstrap row classes, a div wrapper, and bold italic highlighting to demonstrate output modification.
What you can do after
Apply it in a TagHelper Process method to modify elements, attributes, content, or markup surrounding rendered elements.

Read how Pro ASP.NET Core 7, Tenth Edition explains TagHelperOutput →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.