IHttpHandler learning IHttpHandler those things

Those things about IHttpHandler

I watched the knowledge of IHttpHAndler tonight,

After customizing Httphandler, configuration in webconfig is also a technical task, what integration mode, what asp pipeline, etc.;

After testing, it looks like this

1 <?xml version= " 1.0 " encoding= " utf-8 " ?>
 2 <!--
 3 For more information on how to configure an  ASP.NET   application,
 visit 4    http://go.microsoft.com/fwlink /?LinkId=169433 5    -->
 6 <configuration>
 7    <system.web>
 8      <compilation debug= " true " targetFramework= " 4.5 " />
 9      <httpRuntime targetFramework= " 4.5 " />
1011
 
     <!--The following kind of light error-->
 12      <!--<httpHandlers>
 13        <add name= " MyFirstHandler " verb= " * " path= " * " type= " IHttpHandlerDemo.MyFirstHandler, IHttpHandlerDemo " / >
 14      </httpHandlers>-->
 15      
16      
17    </system.web>
 18    <!--The following one is ojbk-->
 19    <system.webServer>
 20        <!--<modules>
 21          < add name= "MyFirstHandler" type="IHttpHandlerDemo.MyFirstHandler" />
22       </modules>-->
23       <handlers>
24         <add name="MyFirstHandler" path="*" verb="*" type="IHttpHandlerDemo.MyFirstHandler" preCondition="integratedMode" />
25       </handlers>
26     </system.webServer>
27 </configuration>
View Code

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325077636&siteId=291194637