It's pretty simple.
You create a class that implements the IHttpHandler interface.
You then implement the 2 methods of the interface:
public void ProcessRequest( HttpContext context);
public bool IsReusable{get; }
Here's a simple example:
namespace Test
{
public class SampleHandler : IHttpHandler, IRequiresSessio nState
{
public void ProcessRequest( HttpContext context)
{
context.Respons e.Buffer = true;
context.Respons e.ContentType = "text/xml";
context.Respons e.Write("<root> <node>Hello</node></root>");
context.Respons e.Flush();
context.Respons e.End();
}
public bool IsReusable
{
get { return true; }
}
}
}
compile the class, drop it in your bin and add the handler to your
web.config.
If you want, you can download my AMF.NET handler - it let's flash movies
call .NET code. The amf implementation won't be of any interest to you, but
the web documentation explains the web.config in more detail and you can
look at the GatewayHandler. cs class:
http://amfnet.openmymind.net/
Karl
--
http://www.openmymind.net/
"Chintan" <ch************ **@gmail.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. .
Hi
i want to make my own http handler
can ne one help me or Guide how to do??