How to add Metatags into .aspx code

by 3 replies
4
I had a new website built in .aspx (check sweetheartchecks com)

Now I can't seem to add meta tags without disrupting the programming code.

Because the site is built around a .master page, all of the pages have the same code which I believe (?) is hurting me with optimization.

Can someone please enlighten on what to do here?

Thanks,

Cathy
#programming #add #aspx #code #metatags
  • Hi Cathy,

    I have come across this issue myself. Master files are highly recommended but can be a little painful when it comes to page customization.

    You will need to pass variables to your Master file as you're calling it. For example:

    <Master:header id="header" runat="server" Visible="true" keywords="criminal check, online dating criminal check, ..."></Master:header>

    Then, from your master header file you can call up this variable. Be sure to declare your variable(s) at the very top of your master file:

    <script runat="server">public keywords as string</script>

    You can then insert your variables where needed using the response.write() function.

    Hope that helps.
    • [1] reply
    • I'm not a coder, so this is greek to me, but at least I can pass it along to someone who is.

      Thanks for helping.
      • [1] reply

Next Topics on Trending Feed