HTML [meta] code dynamic modification

  • Thread starter Maziar Aflatoun
  • Start date
M

Maziar Aflatoun

Hi everyone,

I have the following HTML code and I like to change the value of REFRESH
content from 2 to something else at runtime.
Any suggestions?

<HTML>
<HEAD>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<meta http-equiv="REFRESH" content="2;url=Default.aspx">
</HEAD>

Thank you
Maziar Aflatoun
 
C

Craig Deelsnyder

Hi everyone,

I have the following HTML code and I like to change the value of REFRESH
content from 2 to something else at runtime.
Any suggestions?

<HTML>
<HEAD>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<meta http-equiv="REFRESH" content="2;url=Default.aspx">
</HEAD>

Thank you
Maziar Aflatoun

You can modify just about any tag by adding an id="someID" and
runat="server" to its HTML tag. Then in the code-behind, you'd need to
declare another member variable for it (like the ones VS.NET puts in there
automatically, named the same name you gave it (someID) and its type will
be HtmlGenericControl.

You can then access it in code-behind.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top