Home | My Disclaimer | Who am I? | Search...| Log in

Testing Code Highlighting

by Steve Syfuhs / July 31, 2010 04:00 PM

Teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeesting.

For those curious, this is the only way I can figure to do a permanent redirect in ASP.NET 3.5 and lower.

using System;

namespace newtelligence.DasBlog.Web
{
    public partial class rss : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Status = "301 Moved Permanently";
            Response.AddHeader("Location", "/SyndicationService.asmx/GetRss"); 
        }
    }
}

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


About

Steve is a bit of a Renaissance Kid when it comes to technology. He spends most of his time in the security stack.