registering httpModules in web.config

后端 未结 5 1992
死守一世寂寞
死守一世寂寞 2020-12-29 05:34

I am trying to register a custom HttpHandler in the web.config file. MSDN\'s example shows an entry that is commented out...um which doesn\'t work so well.

5条回答
  •  余生分开走
    2020-12-29 05:54

    I am still learning much of the terminology and needed it spelled out for me. In case any of you need the same...

    As an example if:

    • The base class name and project name is TestSite
    • The namespace my class is in is BusinessLogic
    • The class name is PageAuthorization

    in the Web.config file...

     
      
       
        
       
      
    
    

    In my case I had to mark my class with IHttpModule. The definition of the class would look like:

    public class PageAuthorization : IHttpModule
    

提交回复
热议问题