asp.net中的IHttpHandle其实和Java中的Servlet是一样的.
先创建一个IHttpHandle类
再到web.config中配置
在<system.web>下设置
//type为类路径
<httpHandlers>
<add path="chinapay.html" verb="*" type="WebTest.ChinaPayHandle"/>
</httpHandlers>
如遇到以下错误
HTTP Error 500.23 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
Most likely causes:
This application defines configuration in the system.web/httpHandlers section.
可在<system.webServer>下设置
<validation validateIntegratedModeConfiguration="false" />
先创建一个IHttpHandle类
再到web.config中配置
在<system.web>下设置
//type为类路径
<httpHandlers>
<add path="chinapay.html" verb="*" type="WebTest.ChinaPayHandle"/>
</httpHandlers>
如遇到以下错误
HTTP Error 500.23 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
Most likely causes:
This application defines configuration in the system.web/httpHandlers section.
可在<system.webServer>下设置
<validation validateIntegratedModeConfiguration="false" />