shapper wrote:
Hello,
I have been using Http handlers and I have two questions:
>
2. And why should I add an httpHandler to my Web.Config?
<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="handler.aspx"
type="HandlerExample.MyHttpHandler, HandlerTest"/>
</httpHandlers>
</system.web>
</configuration>
I am asking this because I got all this working without using 1 or
2.
Thank You,
Miguel
1. What does Property IsReusable really does and when should I use it?
The IsReusable property lets ASP.NET know if it can reuse an instance
of an HttpHandler or if it needs to re-create it from scratch each
time.
2. And why should I add an httpHandler to my Web.Config?
As far as I know and according to MSDN Documentation "After you have
created a custom HTTP handler class, you must register it in the
Web.config file. This allows ASP.NET to call the handler to service
requests made to resources with the file name extension that you want
the HTTP handler to process."
Either way, you still need to have the handlers registered.
So, there is something really strange in here. Are you sure you're
running the handler you created ? Have you debugged it ?
HTH
Felipe Garcia