liveBook · Manning

Url generation

URL generation is the programmatic construction of resource or endpoint URLs from routing metadata and parameter values.

How 2 Manning books explain it

ASP.NET Core in Action, 3e

URL generation is the process of constructing endpoint URLs from routing metadata and route parameter values.

How it is used
Decouples endpoint links and redirects from hardcoded paths while generating URLs dynamically.
How deep it goes
Explains reverse routing, route values, LinkGenerator, IUrlHelper, and query-string fallback, but not generator internals.
Examples
Uses renamed cart and basket paths, product/view/3, and a Currency/View page with the USD route value.
What you can do after
Apply it via LinkGenerator or IUrlHelper to create links and response redirects that follow route changes.

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

Pro ASP.NET Core 7, Tenth Edition

URL generation is the programmatic construction of resource or endpoint URLs from application configuration and routing information.

How it is used
Generates view links and endpoint redirects from routing configuration instead of hard-coded URL strings.
How deep it goes
Demonstrates tag-helper markup, route naming, dependency-injected LinkGenerator calls, and route-pattern changes.
Examples
Uses an RSVP action link, named population and capital endpoints, Monaco route values, and a changed population URL pattern.
What you can do after
Apply it via asp-action and LinkGenerator to create links that continue working when route patterns change.

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

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.