In dynamic websites like ASP.Net core, it is a bit difficult to manage these tags on content pages because there is one master/layout page usually and all content pages share that page content. One of the ways is you can define the ViewBag or ViewData in the _Layout page and update it in each page to manage title of the page but others are still an issue, so how do we need to deal with them, Answer is simple, we can dynamically inject them.
source https://www.c-sharpcorner.com/article/programmatically-injection-of-seo-friendly-tags-in-asp-net-core/
No comments:
Post a Comment