meta and runat=server

G

Guest

hey all,

i'm trying to walk along in this article from informit.com and stumble
across an issue i can't figure out. it's simple one-liner.

<meta id="mtaRefresh" runat="server" />

the example from the article uses in-line code to reference this element by
saying:
mtaRefresh.Attributes.Add(etc...

however, i'm trying to re-code in the code-behind and the code-complete is
not seeing mtaRefresh. Am i missing something?

thanks,
rodchar
 
G

Guest

As the meta tag is not inside the form, it's not declared automatically
in the code behind. You have to declare it manually:

protected HtmlGenericControl mtaRefresh;
 
G

Guest

thank you so much.

Göran Andersson said:
As the meta tag is not inside the form, it's not declared automatically
in the code behind. You have to declare it manually:

protected HtmlGenericControl mtaRefresh;
 

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

Members online

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top