In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about ASP.NET HTTP module and how to use the HTTP module of the handler. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
Registering HTTP modules in a configuration file
Once we have created the HTTP module and copied it to the Web application bin directory or Global Assembly Cache, the next step is to register it in web.config or machine.config.
We can
Because configuration settings information is inheritable, child directories inherit configuration settings information from parent directories. As a result, child directories may inherit unwanted HTTP modules that are part of the parent configuration information; therefore, we need a way to remove these unwanted modules. We can use
The following code is a generic example of adding an HTTP module:
The following code is a generic example of removing an HTTP module from an application:
In the XML above:
The Type attribute specifies the actual type of HTTP module in the form of class and part names.
·The Name attribute specifies the friendly name of the module. Other applications can use this name to identify HTTP modules.
How to use HTTP modules at ASP.NET runtime
The ASP.NET runtime uses HTTP modules to implement certain special features. The following snippet from the machine.config file shows HTTP modules installed by the ASP.NET runtime:
ASP.NET uses some of the HTTP modules above to provide services such as authentication and authorization, session management, and output buffering. Since these modules are registered in the machine.config file.
Thank you for reading! About "ASP.NET HTTP module and how to use the HTTP module of the handler" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.