Setup ASP.NET HTTP Handlers
This demo displays a simple ASP.NET based HTTP handler (.ashx file) that renders the text "hello."
- Download ASP.NET HTTP Handler.zip.
- Uncompress this folder into the Demos folder located in the Neokernel directory.
- Start the server by running start_nk.bat located in c:\Program Files\cometway\neokernel\demos\ASP.NET HTTP Handler folder.
- 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