Neokernel Demos

Setup ASP.NET HTTP Handlers

This demo displays a simple ASP.NET based HTTP handler (.ashx file) that renders the text "hello."

  1. Download ASP.NET HTTP Handler.zip.
  2. Uncompress this folder into the Demos folder located in the Neokernel directory.

  3. Start the server by running start_nk.bat located in c:\Program Files\cometway\neokernel\demos\ASP.NET HTTP Handler folder.
  4. Using a web browser navigate to http://localhost/test.ashx

Here is the source for the test.ashx file:

<% @ webhandler language="C#" class="HelloHandler" %>
using System;
using System.Web;

public class HelloHandler : IHttpHandler
{
 public bool IsReusable
  {
    get { return true; }
  }

  public void ProcessRequest(HttpContext ctx)
  {
     ctx.Response.Write("hello");
  }
}

Updated: 7/8/10 4:23 PM