关于IHttpHandler接口

使用IHttpHandler该接口可以响应一些不需要定义.aspx页面(实际上需要在web.config文件中定义)的单纯的后台处理功能,例如[打印]、[存储]等。

疑问:IHttpHandler中的IsReusable

但是在该接口中不能使用Session变量,除非同时继承IRequiresSessionState 接口。

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebIHttpHandlerClassTopic.asp

If your handler will access session state values, it must implement the IRequiresSessionState interface (a marker interface with no methods).

posted on 2004-11-09 17:04  胖胖  阅读(978)  评论(0)    收藏  举报

导航