Adding the CANONICAL tag to my page for SEO through code behind

0 votes

I am using ASP.NET with MasterPages. Thus i cant just place this link in my pages that reference my MasterPage.

<link rel="canonical" href="http://www.erate.co.za/" />

I need to place this link in though my Page Load of each one of my pages. How would i do this through code? I am using VB.NET but C# will also help me in the right direction.

This is how i did it for my DESCRIPTION tag in my code behind.

    Dim tag As HtmlMeta = New HtmlMeta()
    tag.Name = "description"
    tag.Content = "Find or rate any company in South Africa for FREE and rate them"
    Header.Controls.Add(tag)
Mar 3, 2022 in Digital Marketing by Kichu
• 19,040 points
1,341 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Digital Marketing

0 votes
0 answers

Does a rel=canonical link remove all SEO value from the page?

I have a site maintained for a ...READ MORE

Mar 8, 2022 in Digital Marketing by Kichu
• 19,040 points
360 views
0 votes
1 answer

How to remove home page title in Yoast SEO?

Here, you have two possibilities. You can ...READ MORE

answered Mar 4, 2022 in Digital Marketing by narikkadan
• 63,600 points
3,071 views
0 votes
0 answers

Can I remove the JSON-LD schema that Yoast adds to my WordPress site?

would like to remove the JSON-LD schema ...READ MORE

Mar 3, 2022 in Digital Marketing by Kichu
• 19,040 points
999 views
0 votes
0 answers

Adding microdata or schema.org for breadcrumb SEO in Drupal 7

I'm currently a little confused about microdata ...READ MORE

Mar 4, 2022 in Digital Marketing by Kichu
• 19,040 points
806 views
0 votes
0 answers

How to make website more SEO friendly when the content is coming from the database? [closed]

How can i make my database content ...READ MORE

Mar 5, 2022 in Digital Marketing by Kichu
• 19,040 points
351 views
0 votes
0 answers
0 votes
1 answer

Convert VB.NET --> C# Projects

You may decompile whole Assemblies into Visual ...READ MORE

answered May 30, 2022 in C# by rajiv
• 1,620 points
627 views
0 votes
1 answer

What is the best C# to VB.net converter

Telerik has a solid SharpDevelop-based converter that ...READ MORE

answered May 30, 2022 in C# by rajiv
• 1,620 points
1,602 views
0 votes
1 answer

Convert VB.NET --> C# Projects

You may decompile whole Assemblies into Visual ...READ MORE

answered May 31, 2022 in C# by anonymous
775 views
0 votes
1 answer

A good and complete tutorial about reflection in .NET?

You can use this https://www.ecma-international.org/publications-and-standards/standards/ecma-335/ to understand ...READ MORE

answered Jun 6, 2022 in C# by pranav
• 2,590 points
554 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP