Dynamic Meta Tag not working in all pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nick

    Dynamic Meta Tag not working in all pages

    Hi there,

    I am adding a meta redirect tag to the page dynamically on 2 separate
    pages in asp.net. One of the pages it works fine, and 5 seconds after the
    page appears, the redirect occurs. On another page, the redirect is
    completely ignored, so I have a couple of questions.

    1. Any idea what could prevent redirection?
    2. Any idea how I can view my dynamically added tags, and at what point
    are they visible? (load / init) ?

    Thanks in advance for your help.

    Nick.


  • Mark Rae [MVP]

    #2
    Re: Dynamic Meta Tag not working in all pages

    "Nick" <a@a.comwrote in message
    news:uEXKDuWHJH A.3456@TK2MSFTN GP04.phx.gbl...
    Thanks in advance for your help.
    Did you find any difference in the rendered markup when you did a View
    Source on the two pages in question...?


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • Nick

      #3
      Re: Dynamic Meta Tag not working in all pages

      Hi Mark,

      The meta tags do not appear when viewing the source in either, and from
      what I gather, they don't appear in the source do they?

      Nick.

      "Mark Rae [MVP]" <mark@markNOSPA Mrae.netwrote in message
      news:%23vEusQXH JHA.3668@TK2MSF TNGP02.phx.gbl. ..
      "Nick" <a@a.comwrote in message
      news:uEXKDuWHJH A.3456@TK2MSFTN GP04.phx.gbl...
      >
      > Thanks in advance for your help.
      >
      Did you find any difference in the rendered markup when you did a View
      Source on the two pages in question...?
      >
      >
      --
      Mark Rae
      ASP.NET MVP
      http://www.markrae.net

      Comment

      • Mark Rae [MVP]

        #4
        Re: Dynamic Meta Tag not working in all pages

        "Nick" <a@a.comwrote in message
        news:enxqJfXHJH A.1160@TK2MSFTN GP04.phx.gbl...

        [please don't top-post]
        >> Thanks in advance for your help.
        >>
        >Did you find any difference in the rendered markup when you did a View
        >Source on the two pages in question...?
        >
        The meta tags do not appear when viewing the source in either, and from
        what I gather, they don't appear in the source do they?
        They most certainly do. Go here: http://www.microsoft.com/, do a View
        Source, and then search for meta - there's dozens of 'em...

        Is this a problem with nomenclature?


        --
        Mark Rae
        ASP.NET MVP


        Comment

        • Nick

          #5
          Re: Dynamic Meta Tag not working in all pages

          I'm guessing you really didn't read my question did you, please note the
          word "Dynamic".

          I'm not suggesting meta tags dont show in the source, of course they show in
          the source, that is their sole intention to show in the source.

          I'm suggesting that my *dynamic* meta tag is not showing in the source code,
          I cannot see it yet as I mentioned, the exact code is working elsewhere on
          another page.

          HtmlMeta Redirect = new HtmlMeta();
          Redirect.ID = "dynamicmetatag ";
          Redirect.HttpEq uiv = "Refresh";
          Redirect.Conten t = string.Format(" 5;URL={0}", pStrURL);
          Page.Header.Con trols.Add(Redir ect);

          I step through the code and can see it being executed, but it doesn't appear
          in source.

          "Is this a problem with nomenclature?"
          *stares blankly*

          Nick.

          "Mark Rae [MVP]" <mark@markNOSPA Mrae.netwrote in message
          news:Op8U3qXHJH A.1160@TK2MSFTN GP05.phx.gbl...
          "Nick" <a@a.comwrote in message
          news:enxqJfXHJH A.1160@TK2MSFTN GP04.phx.gbl...
          >
          [please don't top-post]
          >
          >>> Thanks in advance for your help.
          >>>
          >>Did you find any difference in the rendered markup when you did a View
          >>Source on the two pages in question...?
          >>
          > The meta tags do not appear when viewing the source in either, and from
          >what I gather, they don't appear in the source do they?
          >
          They most certainly do. Go here: http://www.microsoft.com/, do a View
          Source, and then search for meta - there's dozens of 'em...
          >
          Is this a problem with nomenclature?
          >
          >
          --
          Mark Rae
          ASP.NET MVP
          http://www.markrae.net

          Comment

          • Nick

            #6
            Re: Dynamic Meta Tag not working in all pages

            It's okay now, I have found another solution.

            I am now using ASP.net timer objects to fire off my delayed redirection.

            "Nick" <a@a.comwrote in message
            news:%23ZsE$oYH JHA.3456@TK2MSF TNGP04.phx.gbl. ..
            I'm guessing you really didn't read my question did you, please note the
            word "Dynamic".
            >
            I'm not suggesting meta tags dont show in the source, of course they show
            in the source, that is their sole intention to show in the source.
            >
            I'm suggesting that my *dynamic* meta tag is not showing in the source
            code, I cannot see it yet as I mentioned, the exact code is working
            elsewhere on another page.
            >
            HtmlMeta Redirect = new HtmlMeta();
            Redirect.ID = "dynamicmetatag ";
            Redirect.HttpEq uiv = "Refresh";
            Redirect.Conten t = string.Format(" 5;URL={0}", pStrURL);
            Page.Header.Con trols.Add(Redir ect);
            >
            I step through the code and can see it being executed, but it doesn't
            appear in source.
            >
            "Is this a problem with nomenclature?"
            *stares blankly*
            >
            Nick.
            >
            "Mark Rae [MVP]" <mark@markNOSPA Mrae.netwrote in message
            news:Op8U3qXHJH A.1160@TK2MSFTN GP05.phx.gbl...
            >"Nick" <a@a.comwrote in message
            >news:enxqJfXHJ HA.1160@TK2MSFT NGP04.phx.gbl.. .
            >>
            >[please don't top-post]
            >>
            >>>> Thanks in advance for your help.
            >>>>
            >>>Did you find any difference in the rendered markup when you did a View
            >>>Source on the two pages in question...?
            >>>
            >> The meta tags do not appear when viewing the source in either, and from
            >>what I gather, they don't appear in the source do they?
            >>
            >They most certainly do. Go here: http://www.microsoft.com/, do a View
            >Source, and then search for meta - there's dozens of 'em...
            >>
            >Is this a problem with nomenclature?
            >>
            >>
            >--
            >Mark Rae
            >ASP.NET MVP
            >http://www.markrae.net
            >
            >

            Comment

            Working...