开发者

Httphandlers and http modules

开发者 https://www.devze.com 2023-02-09 14:55 出处:网络
How do we findout the whether the application is using any HTTPModules and ht开发者_如何学Gotphandler in the applicaion?

How do we findout the whether the application is using any HTTPModules and ht开发者_如何学Gotphandler in the applicaion?

Is there anyway to findout from the url without checking the web.config file?


You cannot check with any certainty without using backed code.

To get the current handler.

System.Web.HttpContext.Current.CurrentHandler 

To get the list of modules that executed for the request

System.Web.HttpContext.Current.ApplicationInstance.Modules
0

精彩评论

暂无评论...
验证码 换一张
取 消