HTML [meta] code dynamic modification

  • Thread starter Thread starter Maziar Aflatoun
  • Start date 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
 
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.....
 
Back
Top