To be more specific, I’m using a master page and I want to insert rel=’canonical’ in some pages (for example when I’m using paging in a certain .aspx page).
I need to inject it in the head section of the master page:
This was a step in the right direction:
ASP.NET masterpages: how to insert markup in the head section inside the aspx?
but I need to have more control, to inject only when I have page=2 in the url.
Thanks
The answer is just there in the link. You need to create an content place holder in the master page and then set it in the pages and conditionally set the rel type.