Url rewriting in HttpHandler

by dee 24. January 2008 03:10

Make the following:

public void ProcessRequest(HttpContext context)
{
    HttpRequest request = context.Request;
    context.RewritePath("new url");
    IHttpHandler handler = PageParser.GetCompiledPageInstance("page which should handle request", null, context); // Page name should be like "Default.aspx". Without url parameters!
    handler.ProcessRequest(context);
}

Powered by BlogEngine.NET 1.4.0.0
Theme by Mads Kristensen