In ASP.NET
Code: ASP
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
  Response.Status = "301 Moved Permanently";
  Response.AddHeader("Location","http://www.newdomain.com/");
}
</script>
and in ASP
Code: ASP
Response.Clear
Response.Status = 301
Response.AddHeader "Location", "newUserLogin.asp"
Response.Flush
Response.End

Last edited by aspguy; 24Feb2006 at 20:04..