Is there a way to insert a META tag into the head portion of a page dynamically?
Laugh, and the world laughs with you. Cry, and you just water down your vodka. Take credit, not responsibility
Use Response.Write while writting the headers out....... TG
* I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.* * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.* * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft * * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *
Pffffttt...I could have thought of that.
or you can do it using response.addheader in code like this: VB Code: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Response.AddHeader("Pragma", "no-cache") Response.AddHeader("Cache-control", "private, no-cache, must-revalidate") Response.AddHeader("Refresh", "60;url=default.aspx") 'etc End Sub
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Response.AddHeader("Pragma", "no-cache") Response.AddHeader("Cache-control", "private, no-cache, must-revalidate") Response.AddHeader("Refresh", "60;url=default.aspx") 'etc End Sub
Forum Rules