Let’s say you have some sort of ‘Stats’ page and that users need to log into it. Let’s also say that you want it to use the REFRESH Meta Tag, once they’re logged in, with all the ‘parts’ of this in one page.
Since you don’t want the login part of the form refreshing all the time, what you can do is put your Meta Tag inside an ASP Literal Control.
Once your logic has been established for whether or not you want the meta tag to be available (maybe by creating uid/pwd sessions), then make the literal control ‘Visible’.
In the Page_PreRender Event, then include logic like this:
Sub Page_PreRender(Source as Object, E as EventArgs)
if session("uid")="" and session("pwd")="" then
literal1.visible="false"
else
literal1.visible="True"
End If
End Sub