Can someone please tell me why the following dynamic refresh doesn't work!
Thanks
Inline code...
<!----- dynamically filled META REFRESH element ----->
<meta id="mtaRefresh " runat="server" />
...CodeBehind
Protected WithEvents mtaRefresh As
System.Web.UI.H tmlControls.Htm lGenericControl
' use META REFRESH to start loading next page
mtaRefresh.Attr ibutes.Add("htt p-equiv", "refresh")
mtaRefresh.Attr ibutes.Add("con tent", "0;url=" & sRefreshURL) 4 3072
Start by checking the HTML code using "view source" to find out if this is
a problem with creating the HTML server side or how the browser behaves
client-side. If the HTML looks good try a non zero value...
Patrice
--
"Tim::.." <myatix_at_hotm ail.com> a écrit dans le message de
news:22******** *************** ***********@mic rosoft.com... Can someone please tell me why the following dynamic refresh doesn't work!
Thanks
Inline code... <!----- dynamically filled META REFRESH element -----> <meta id="mtaRefresh " runat="server" />
..CodeBehind Protected WithEvents mtaRefresh As System.Web.UI.H tmlControls.Htm lGenericControl ' use META REFRESH to start loading next page mtaRefresh.Attr ibutes.Add("htt p-equiv", "refresh") mtaRefresh.Attr ibutes.Add("con tent", "0;url=" & sRefreshURL)
I think I'm using the wrong namespace but I'm not sure what it should be! I
would be grateful for any advice!
I checked the HTML source and the code isn't generated!
Can someone please help!
Inlinecode...
<!----- dynamically filled META REFRESH element ----->
<meta id="mtaRefresh " runat="server" />
Codebehind...
Protected WithEvents mtaRefresh As
System.Web.UI.H tmlControls.Htm lGenericControl
mtaRefresh.Attr ibutes.Add("htt p-equiv", "refresh")
mtaRefresh.Attr ibutes.Add("con tent", "0;url=" & sRefreshURL)
Thank you!
Protected WithEvents tagBody As System.Web.UI.H tmlControls.Htm lGenericControl
"Patrice" wrote: Start by checking the HTML code using "view source" to find out if this is a problem with creating the HTML server side or how the browser behaves client-side. If the HTML looks good try a non zero value...
Patrice
--
"Tim::.." <myatix_at_hotm ail.com> a écrit dans le message de news:22******** *************** ***********@mic rosoft.com... Can someone please tell me why the following dynamic refresh doesn't work!
Thanks
Inline code... <!----- dynamically filled META REFRESH element -----> <meta id="mtaRefresh " runat="server" />
..CodeBehind Protected WithEvents mtaRefresh As System.Web.UI.H tmlControls.Htm lGenericControl ' use META REFRESH to start loading next page mtaRefresh.Attr ibutes.Add("htt p-equiv", "refresh") mtaRefresh.Attr ibutes.Add("con tent", "0;url=" & sRefreshURL)
"Tim::.." <myatix_at_hotm ail.com> wrote in message
news:22******** *************** ***********@mic rosoft.com... Can someone please tell me why the following dynamic refresh doesn't work!
Thanks
Inline code... <!----- dynamically filled META REFRESH element -----> <meta id="mtaRefresh " runat="server" />
..CodeBehind Protected WithEvents mtaRefresh As System.Web.UI.H tmlControls.Htm lGenericControl ' use META REFRESH to start loading next page mtaRefresh.Attr ibutes.Add("htt p-equiv", "refresh") mtaRefresh.Attr ibutes.Add("con tent", "0;url=" & sRefreshURL)
I may be wrong, but I didn't think you can use runat with a meta tag. What I
do is create a placeholder and place literal or load static controls in the
placeholder as follows.
Adding literal
plc1.controls.c lear
plc1.controls.a dd(New Literalcontrol( "<meta name=" & chr(34) & "my meta
string" & chr(34) & " content=" & chr(34) & "content text" & chr(34) & ">"))
or if you have several fixed meta controls that you can add depending on
criteria.
plc1.controls.c lear
dim ctl as control = loadcontrol("in c/metatag123.ascx ")
plc1.controls.a dd(ctl)
Hope this helps.
Mike
Tim,
another way of accomplishing this, is using javascript, generated serverside.
Now I didn't test this actual line of code but I've used it before
Page.RegisterSt artUpScript("Re fresh", myScript)
where myScript contains:
string myScript = "window.SetInte rval(document.l ocation.reload,
some_variable_c ontaining_milli seconds)"
"Tim::.." wrote: I think I'm using the wrong namespace but I'm not sure what it should be! I would be grateful for any advice!
I checked the HTML source and the code isn't generated!
Can someone please help!
Inlinecode... <!----- dynamically filled META REFRESH element -----> <meta id="mtaRefresh " runat="server" />
Codebehind... Protected WithEvents mtaRefresh As System.Web.UI.H tmlControls.Htm lGenericControl
mtaRefresh.Attr ibutes.Add("htt p-equiv", "refresh") mtaRefresh.Attr ibutes.Add("con tent", "0;url=" & sRefreshURL)
Thank you!
Protected WithEvents tagBody As System.Web.UI.H tmlControls.Htm lGenericControl
"Patrice" wrote:
Start by checking the HTML code using "view source" to find out if this is a problem with creating the HTML server side or how the browser behaves client-side. If the HTML looks good try a non zero value...
Patrice
--
"Tim::.." <myatix_at_hotm ail.com> a écrit dans le message de news:22******** *************** ***********@mic rosoft.com... Can someone please tell me why the following dynamic refresh doesn't work!
Thanks
Inline code... <!----- dynamically filled META REFRESH element -----> <meta id="mtaRefresh " runat="server" />
..CodeBehind Protected WithEvents mtaRefresh As System.Web.UI.H tmlControls.Htm lGenericControl ' use META REFRESH to start loading next page mtaRefresh.Attr ibutes.Add("htt p-equiv", "refresh") mtaRefresh.Attr ibutes.Add("con tent", "0;url=" & sRefreshURL) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Will Appleby |
last post by:
I'm trying to create a web page that will refresh each time someone
visits so they always see an updated version. I've tried using
<META HTTP-EQUIV="refresh" CONTENT=";URL=index.html">
in the HTML code, but it doesn't seem to work. If I add time value
after CONTENT= it will refresh after that time, but I only want the
page to refresh...
|
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 "dynamic" and I don't have a clue how to do so.
I want to link to a file using something like this:
<a href="file.shtml?dynamic">Link</a>
|
by: Tom Frantz |
last post by:
I have a META tag coded as follows:
<META HTTP-EQUIV="refresh"
CONTENT="60;URL=http://www.mydomain.com/myPage.html" id="refreshMeta">
This of course causes the page to automatically refresh itself every 60
seconds.
Now I want to have a button on my page that allows the user to stop the page
from reloading itself so I created the...
|
by: Jim Hammond |
last post by:
After much effort, it doesn't seem possible to redirect the user to a new
page after 10 seconds by using a server-side timer. I am now using the
following meta statement to accomplish the same thing:
<META HTTP-EQUIV="refresh" content="10;URL=Form_Welcome.aspx">
This seems to work fine, but I now have three concerns because I thought it...
|
by: Matt Swift |
last post by:
Does anyone know if a meta tag using refresh can be made into a dynamic
control, given a 'runat' and 'id' ?
--
Matt Swift
------------------------
Developer , S-Cool Ltd
+447966670029
matt.swift@s-cool.co.uk
matthewswift@hotmail.com
| |
by: Bredahl jensen |
last post by:
Hello,
Where can i find a dynamic content rotator. The asp.net server control
only show the next content when page has refreshed. But
this is boring to me.
I'm not the javascript /dhtml expert and i 'm wondering if there is any
available code for this
somewhere.
Alternatively , is there a commercial solution not too expensive?
I have...
|
by: Dst |
last post by:
<head runat="server">
<noscript>
<meta http-equiv='refresh' content='0;url=Unsupported.htm'/>
</noscript>
</head>
If i add this to my webform, it redirects to Unsupported.htm if
javascript is disabled.
|
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 first part is in the inc.header.asp file which is called up on every page. The page itself has the meta tag variable, ie. title, description. They...
|
by: Nick |
last post by:
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |