asp.net - Intercepting *.aspx -
i'm trying intercept every aspx requests. interception works, page stay blank. missing ?
namespace website { public class class1 : ihttphandler { public bool isreusable { { return true; } } public void processrequest(httpcontext context) { } } } <system.webserver> <handlers> <add name="samplehandler" verb="*" path="*.aspx" type="website.class1, website" resourcetype="unspecified" /> </handlers> </system.webserver>
you're intercepting page request, you're not doing it. if expect see sort of output, have perform kind of manipulation httpcontext being passed in. below couple of articles might decent reading when dealing httpcontext. in nutshell, if expect see response, have generate it.
http://odetocode.com/articles/112.aspx
what difference between httpcontext.current.response , page.response?
http://www.c-sharpcorner.com/uploadfile/desaijm/asp.netposturl11282005005516am/asp.netposturl.aspx
Comments
Post a Comment