Hi. I'm trying to get one of the examples from ASP.NET 1.1 Insider
Solutions to work in asp.net and i'm getting stuck on using the META
tage to do a refresh.
I have the following in my HTML behind my aspx web form but the ID=..
is generating an error - "Could not find any attribute 'id' of element
'meta'."
<meta id="mtaRefresh" runat="server" />
If I have no ID how can I refer to the tag in my code? I want to do
the following:
Dim myMeta As HtmlControls.HtmlGenericControl
myMeta = Page.FindControl("mtaRefresh")
myMeta.Attributes.Add("http-equiv", "refresh")
myMeta.Attributes.Add("content", "0;url=" & sRefreshURL)
I've tried using name="mtaRefresh" but just get no object returned by
the FindControl.
Any suggestions are more than welcome but I'm quite a newcomer to asp.