I'm trying to follow this thread: 'http://aspsnippets.com/Articles/Reload-Refresh-and-Redirect-Pages-using-Meta-Tags-in-ASP.Net.aspx
When I try and write the meta refresh from my code behind I get the following error:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 30: meta.HttpEquiv = "refresh"
Line 31: meta.Content = "5;url=" & NewURL
Line 32: Me.Page.Header.Controls.Add(meta)
Line 33:
Line 34: 'Response.AppendHeader("Refresh", "5;url=" & NewURL)
Source File: D:\Domains\somedo ...
Go to the complete details ...