473,420 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,420 software developers and data experts.

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.
Sep 23 '08 #1
5 1389
"Nick" <a@a.comwrote in message
news:uE**************@TK2MSFTNGP04.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

Sep 23 '08 #2
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]" <ma**@markNOSPAMrae.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
"Nick" <a@a.comwrote in message
news:uE**************@TK2MSFTNGP04.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

Sep 23 '08 #3
"Nick" <a@a.comwrote in message
news:en**************@TK2MSFTNGP04.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

Sep 23 '08 #4
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.HttpEquiv = "Refresh";
Redirect.Content = string.Format("5;URL={0}", pStrURL);
Page.Header.Controls.Add(Redirect);

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]" <ma**@markNOSPAMrae.netwrote in message
news:Op**************@TK2MSFTNGP05.phx.gbl...
"Nick" <a@a.comwrote in message
news:en**************@TK2MSFTNGP04.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

Sep 23 '08 #5
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:%2****************@TK2MSFTNGP04.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.HttpEquiv = "Refresh";
Redirect.Content = string.Format("5;URL={0}", pStrURL);
Page.Header.Controls.Add(Redirect);

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]" <ma**@markNOSPAMrae.netwrote in message
news:Op**************@TK2MSFTNGP05.phx.gbl...
>"Nick" <a@a.comwrote in message
news:en**************@TK2MSFTNGP04.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


Sep 23 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Roel Wuyts | last post by:
CALL FOR CONTRIBUTIONS International Workshop on Revival of Dynamic Languages http://pico.vub.ac.be/~wdmeuter/RDL04/index.html (at OOPSLA2004, Vancouver, British Columbia, Canada, October...
4
by: Daniel Keller | last post by:
Hello! I'm trying to set up a page system using "dynamic" SSI. That means that I normally use the following on my website: <!--#include virtual="file.inc" --> Now I want to make this...
6
by: Mark | last post by:
I have been working for quite some time on this issue which in theory should be quite simple. The problem is that the Cancel and Save events are not fired when their respective buttons are...
0
by: Alexandre Bergel | last post by:
Dear colleague, Please, note that after the workshop, best papers will be selected, and a second deadline will then be set regarding preparation of the Electronic Communications of the...
21
by: karen987 | last post by:
I have a news website, with asp pages. It has publishing software which allows you to add articles in a database, and then calls them up from links etc. I have added dynamic meta tags in 2 parts. The...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.