Answer the question
In order to leave comments, you need to log in
How does IsReusable work in IHttpHandler(ashx) in ASP.NET?
public bool IsReusable
{
get { return false; }
}
Answer the question
In order to leave comments, you need to log in
IsReusable just means that the same instance can be used, not the result.
If your handler has a state (i.e. you save some data in its properties), only then you need to set false.
If (and in most cases this is the case) you have all the code in the ProcessRequest method and nothing is saved to the properties / fields of the handler itself, then leave true
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question