How to add Metatags into .aspx code

3 replies
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
#add #aspx #code #metatags
  • Profile picture of the author osegoly
    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.
    {{ DiscussionBoard.errors[2031692].message }}
    • Profile picture of the author CKTaylor7
      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.
      {{ DiscussionBoard.errors[2031982].message }}
      • Profile picture of the author osegoly
        Understandable. Good luck!
        {{ DiscussionBoard.errors[2032334].message }}

Trending Topics